PowerShellを開いて下記のコマンドを入力して実行
(Get-WmiObject Win32_OperatingSystem).Caption

画像の様にOS情報が表示されます。
ビルド番号を取得
レジストリ「HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion」の「DisplayVersion」にビルド番号が格納されている。
下記コマンドを実行することで取得できます。変数に入れていますが入れなくてもよい。
$RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion"
$RegKey = "DisplayVersion"
(Get-ItemProperty $RegPath -name $RegKey -ErrorAction SilentlyContinue).$RegKey

コメント