How to find the build / UBR / kernel version of Windows 10 using command-line (cmd)
I would like to know the basic commands in prompt windows. Therefore, I want to begin by knowing the command that return details of my operating system like kernel version / build and UBR (Update Build Revision).
22 Answers
I want to know my OS kernel version / build and UBR (Update Build Revision).
Use the following command in a cmd shell:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"Example output:
> systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.14393 N/A Build 14393And in PowerShell:
Get-CimInstance Win32_OperatingSystem | Select-Object Caption, CSDVersion, ServicePackMajorVersion, BuildNumber | FLExample output:
Caption : Microsoft Windows 10 Enterprise
CSDVersion :
ServicePackMajorVersion : 0
BuildNumber : 14393Or:
[System.Environment]::OSVersion.VersionExample output:
> [System.Environment]::OSVersion.Version
Major Minor Build Revision
----- ----- ----- --------
10 0 14393 0Further Reading
- An A-Z Index of the Windows CMD command line
- A categorized list of Windows CMD commands
- findstr - Search for strings in files.
- systeminfo - List system configuration
Run this from the cmd prompt:
c:\> ver
Microsoft Windows [Version 10.0.17763.1158]