A:의 버전을 확인하기 위해 윈도우 PowerShell,설치,실행 cmdlet:
get-host
표시됩니다 버전의 PowerShell 호스트.
아래는 cmdlet 을 실행할 때 표시되는 출력의 예입니다.,
PS C:\> get-host
Name : Windows PowerShell ISE Host
Version : 3.0InstanceId : ff53c294-38a7-4f48-b439-378843e45802
e
UI : System.Management.Automation.Internal.Host.InternalHostUserInterfacCurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Also, you can check the built-in variable $PSVersionTable for the actual PowerShell version., Here’s the cmdlet:
$PSVersionTable
Below is an example of output returned when I entered the cmdt:
PS C:\> $PSVersionTable
Name Value
---- ----- WSManStackVersion 3.0
PSCompatibleVersions {1.0, 2.0, 3.0}
SerializationVersion 1.1.0.1
BuildVersion 6.2.9200.16398
PSVersion 3.0
CLRVersion 4.0.30319.269
PSRemotingProtocolVersion 2.2