Knowing the exact version of Windows Server running on your infrastructure is fundamental for security, compliance, and compatibility. This information dictates which updates are applicable, which features are available, and whether your environment meets the requirements for new software. Administrators often need to verify this detail during initial setup, troubleshooting, or routine audits, making it a core skill in system management.
Understanding Windows Server Versioning
Before diving into the "how," it is essential to understand the "what." Windows Server does not simply increment a version number like a standard desktop release; instead, it utilizes specific year-based names and build numbers. For example, Windows Server 2022 carries the build number 10.0.20348, while Windows Server 2019 uses 10.0.17763. This nomenclature helps identify the release channel and the specific updates applied to the system.
Using the System Information Utility
The most visual and straightforward method involves using the built-in System Information tool. This graphical interface provides a comprehensive overview of the hardware and software configuration, including the OS version.
Press Windows Key + R to open the Run dialog.
Type msinfo32 and press Enter.
In the System Information window, locate the OS Version entry under the System Summary section. The value here will display the specific build number and version string.
Leveraging the Command Line with Systeminfo
For automation and remote execution, the command line is indispensable. The systeminfo command outputs a wealth of data, and the OS version is prominently displayed at the top of the report.
To use this method:
Open Command Prompt or PowerShell with administrative privileges.
Type systeminfo and press Enter.
Scroll through the output to find the OS Version line, which will specify the exact build number installed on the server.
Direct Query via PowerShell
PowerShell offers the most concise and scriptable approach to checking the Windows Server version. Utilizing the WMI (Windows Management Instrumentation) query capability, you can retrieve specific properties without parsing verbose text output.
Execute the following command in a PowerShell terminal:
This command returns the friendly name (Caption), the semantic version (Version), and the specific build (BuildNumber), providing a clean data set for further processing or reporting.
Interpreting the Build Number
Once you have retrieved the build number, you must interpret its meaning to understand the specific release. The presence of a build number like 10.0.19041 indicates Windows Server 2019, while 10.0.20348 points to Windows Server 2022. Microsoft maintains a public list of build numbers, which is an invaluable resource for administrators to confirm the exact edition and update level without relying on graphical interfaces.
Checking via the Registry
For advanced users or scenarios where standard utilities are unavailable, the Windows Registry holds the definitive version information. The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion contains values such as CurrentVersion and CurrentBuild .
To check:
Open the Registry Editor by typing regedit in the Run dialog.
Navigate to the path mentioned above.