Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Powershell v.2.0 to v.3.0

$
0
0

Hi all,

 

We recently updated one of our admin servers to WMI 3.0 and I'm finding that all my PS v.2.0 or earlier scripts are no longer working. Does anyone know how to write a command within the script itself to use PS version 2.0 instead of using the Powershell.exe -Version 2.0 parameter for the program shortcut?  I have my scripts working using a batch file to run PS in version 2.0 but would like to know if there are any commands out there that I can use in the PS script itself.  Any help would be appreciated.


Viewing all articles
Browse latest Browse all 8583

Trending Articles