Identifying the exact version of a Windows Server environment is a fundamental task for system administrators and IT professionals. Whether you are troubleshooting a compatibility issue, preparing for a security audit, or managing a hybrid cloud infrastructure, knowing the specific build and edition of your server is critical for applying the correct updates and configurations. This guide provides multiple reliable methods to determine the version of Windows Server running on any machine.
Using the System Information Tool
The most straightforward graphical method involves using the built-in System Information utility. This tool provides a comprehensive overview of the hardware and software configuration, including the OS version details. It is an excellent starting point for users who prefer a visual interface over command-line input.
Press Windows Key + R to open the Run dialog box.
Type msinfo32 and press Enter.
In the System Information window, look for the OS Version entry under the System Summary section. This field displays the edition (such as Datacenter or Standard) and the specific build number of the installed operating system.
Leveraging the Command Line with Systeminfo
For remote management or scripting purposes, the command line offers a faster and more efficient approach. The systeminfo command outputs detailed information about the operating system, including the exact version, build number, and installation date. This method is particularly useful when working directly on a server console or via a remote PowerShell session.
Open Command Prompt or PowerShell with administrative privileges.
Type systeminfo and press Enter.
Scroll through the output to find the OS Version and System Type lines. The version number will be listed in a format such as "10.0.20348" or "6.3.9600", which corresponds to specific releases of Windows Server.
Utilizing PowerShell for Precise Output
PowerShell provides the most flexible and scriptable way to query the operating system version. By leveraging specific cmdlets, administrators can extract only the necessary data, making it ideal for automation and bulk checks across multiple servers. This approach is highly recommended for enterprise environments.
Open PowerShell.
Execute the command (Get-CimInstance -ClassName Win32_OperatingSystem).Caption to display the full edition name.
To retrieve the precise build number, run (Get-CimInstance -ClassName Win32_OperatingSystem).Version . The combination of these two commands immediately tells you if you are running Server 2019, Server 2022, or a Nano deployment.
Checking via the Settings App
Modern Windows Server versions, particularly those with the Desktop Experience installed, include a Settings interface similar to client Windows. While not as detailed as the command line, it offers a quick visual confirmation of the OS build. This method is ideal for quick checks during initial setup or troubleshooting.
Open the Settings app by pressing Windows Key + I .
Navigate to System and then click on About .
Under the Device specifications section, locate the Version field. This will display the OS edition and the installed build number, such as "21H2" or "22H2".