PowerShell Community Extensions 2.0 Beta Released

We have released a new beta of PSCX that is complete module based and as such, only works with Windows PowerShell 2.0.  You can have both 1.2 and 2.0 installed on the same system.  You just alternate between Add-PSSnapin for 1.2 and Import-Module Pscx for 2.0.  There is a new Test-Script cmdlet that checks for syntax errors in PowerShell scripts.  There is also a few function Invoke-BatchFile that is very handy for importing environment variables created in a batch file.  This is most handy for setting up your PowerShell environment for Visual Studio development e.g.:

   1: Import-Module Pscx -DisableNameChecking
   2: $vcargs = ?: {$Pscx:Is64BitProcess} {'amd64'} {''}
   3: $VS90VCVarsBatchFile = "${env:VS90COMNTOOLS}..\..\VC\vcvarsall.bat"
   4: Invoke-BatchFile $VS90VCVarsBatchFile $vcargs


Give PSCX 2.0 a try and let us know what you think.

This entry was posted in PSCX. Bookmark the permalink.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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