首页 > 代码库 > 如何查看PowerShell版本

如何查看PowerShell版本

  1. Click Start, click All Programs, click Accessories, click Windows PowerShell, and then click Windows PowerShell.
  2. In the Windows PowerShell console, type the following command at the command prompt and then press ENTER:

     $PSVersionTable.PSVersion

Major Minor Build Revision
----- ----- ----- --------
2 0 -1 -1

 

 

 

PS C:\Users\Administrator> Get-Host


Name : ConsoleHost
Version : 2.0
InstanceId : 46ec5108-c784-4098-856e-eb1345f2eb86
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : zh-CN
CurrentUICulture : zh-CN
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace

如何查看PowerShell版本