- Click Start, click All Programs, click Accessories, click Windows PowerShell, and then click Windows PowerShell.
- 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
时间: 2024-10-08 12:43:19