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

Ref : Windows 10 – release information | Microsoft Learn


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.