PowerShellのバージョンを確認するには、「PSVersionTable」コマンドを使用します。
1 |
$PSVersionTable |
実際に確認してみます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
PS C:\kamo> $PSVersionTable Name Value ---- ----- PSVersion 5.1.18362.628 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.18362.628 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 PS C:\kamo> |
PSVersionが、PowerShellのバージョンです。