> $PSVersionTable
> $PSVersionTable
Name Value
—- —–
PSVersion 7.3.6
PSEdition Core
GitCommitId 7.3.6
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
最新バージョンの PowerShell
最新バージョンの PowerShell を検索
winget search Microsoft.PowerShell
Name Id Version Source
--------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.3.6.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.4 winget
id
パラメーターを使用して PowerShell をインストール
winget install --id Microsoft.Powershell --source winget
winget install --id Microsoft.Powershell.Preview --source winget