Forum Discussion
eladfe
Jul 06, 2023Copper Contributor
Complete OSbuild number
Hay
How can i get from a query thr complete osbuild number?
the deviceinfo scheme returns only the number before the dot . for example 19045
I want to see the full osbuild number : 19045.3086
Thanks
1 Reply
Sort By
- raphaelcustodiosoaresIron Contributor
please open Powershell ISE on your computer and execute the script below.
please like this post if it help you.
$CurrentBuild = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' –Name CurrentBuild).CurrentBuild $UBR = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' –Name UBR).UBR $OSVersion = $CurrentBuild + "." + $UBR write-host $OSVersion