Coolest Thing I Have Seen In Powershell In A Long Time

Check out this blog post from the Powershell Team. It shows how you can make variables in Powershell behave as global static properties. Be sure to grab the New-ScriptVariable script.
Note that it uses the Add-Type cmdlet available in Powershell 2.0. If you don’t have version 2.0 then Add-Type can be replaced with my New-CAssembly script. It’s a really easy conversion. In fact I already converted it and is available from my SkyDrive.

~ by lunaticexperimentalist on March 27, 2009.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: