Get the OS Version and Build Number with a PowerShell Script.
1 2 3 4 | $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