Get the OS Version and Build Number with a PowerShell Script.
$RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion"
$BuildNumber = (Get-ItemProperty -Path $RegPath).CurrentBuild
$UBR = (Get-ItemProperty -Path $RegPath).UBR
$osVersion = "$BuildNumber.$UBR"
Powershell return for example : 22631.4037
0 Comments