RSS All Posts

RSS PowerShell Posts

Tags

2142 Active Directory Administrativia Announcements Battlefield Blogging Cricket Deployment Deployment4 Get-PSUGUK Group Policy HowTo Linux MDT MDT 2010 Microsoft Deployment Toolkit MSDN Music Permissions Personal PowerGui Power Lines PowerShell PowerShell Groups PowerShell Support PowerShell Tools PowerShell V2 Presentations PSUGAU Quick Tips Scripting SDDL Security Tech Talk Ubuntu User Groups Virtualisation VMware Infrastructure Client WAIK Weekly Poll Windows 7 Windows Automation Installation Kit Windows Server 2003 Windows Server 2008 XML

Archives

Meta

Path PowerLine

Thursday, June 7th, 2007

I am constantly impressed by how quick you can get the job done with PowerShell. As I have mentioned before one-liners, or PowerLines as I prefer ;) are a good example, although not always practical.
So here’s my PowerLine for the day:

if (! ($env:path).contains("C:\coding") ) { $env:path+= ";C:\coding" }

This basically checks if the path statement contains [...]

Power Lines

Wednesday, April 4th, 2007

Once you’ve been using PowerShell for a while you start to notice that you can often get the job done using just one line of code. These “one liners” can sometimes look pretty impressive, but they are also get pretty cryptic!
Its a good sales pitch for PowerShell: “yeah, I can do [insert amazing feat [...]