Saturday 15 May 2010

Determine installed PowerShell version -


Which version of PowerShell has been installed on a computer, and how can I actually install it?

Use $ PSVersionTable.PSVersion to set the engine version If the variable is not present, it is safe to assume that the version of the engine is 1.0 .

Note that $ Host.Version and (Go-Host) .Version are not trusted - they only reflect the version of the host, Not all of the engines are PowerGUI, PowerShellPLUS, etc., and they will set the version of the host to reflect their product version & nbsp; & Mdash; Which is absolutely correct, but not what you are looking for.

  PS C: \ & gt; $ PSVersionTable.PSVersion Major Short Build Amendment ----- ------------------4 0 -1 -1  
< / Html>

No comments:

Post a Comment