Detect Windows Server version 32/64-bit in CLI



As an IT administrator, one of the most important tasks is to ensure that all systems are properly configured and running the correct version of the operating system. This includes knowing the version of Windows Server that is running on a given system. This can be a difficult task, especially when dealing with multiple systems. Fortunately, there are a few ways to detect the Windows Server version and whether it is 32-bit or 64-bit in the command line.

The first method is to use the ver command. This command will return the full version of the operating system, including the edition, service pack and build number. To use this command, open the command prompt and type in “ver”. The output should look similar to the following:

Microsoft Windows [Version 10.0.14393]

This output indicates that the system is running Windows 10 version 14393. To determine if the system is running a 32-bit or 64-bit version of Windows Server, you can use the wmic command. This command will return the complete version information, including the architecture type. To use this command, open the command prompt and type in “wmic os get osarchitecture”. The output should look similar to the following:

OSArchitecture 64-bit

This output indicates that the system is running a 64-bit version of Windows Server.

The second method is to use the systeminfo command. This command will return extensive system information, including the version of Windows Server that is running. To use this command, open the command prompt and type in “systeminfo”. The output should look similar to the following:

OS Name: Microsoft Windows Server 2012 R2 Standard

OS Version: 6.3.9600 N/A Build 9600

This output indicates that the system is running Windows Server 2012 R2 Standard. To determine if the system is running a 32-bit or 64-bit version of Windows Server, you can use the wmic command. This command will return the complete version information, including the architecture type. To use this command, open the command prompt and type in “wmic os get osarchitecture”. The output should look similar to the following:

OSArchitecture 64-bit

This output indicates that the system is running a 64-bit version of Windows Server.

The third method is to use the registry editor. This is a powerful tool that can be used to view, modify and delete registry keys and values. To use this tool, open the registry editor by typing “regedit” in the command prompt. Navigate to the following registry key:

HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion

This registry key contains a number of values related to the Windows version. The most important value is the ProductName value. This value contains the full version of the operating system. In this case, the output should look similar to the following:

ProductName Microsoft Windows Server 2012 R2 Standard

This output indicates that the system is running Windows Server 2012 R2 Standard. To determine if the system is running a 32-bit or 64-bit version of Windows Server, you can use the registry editor to view the SystemType value. This value should contain the following output:

SystemType x64-based PC

This output indicates that the system is running a 64-bit version of Windows Server.

In conclusion, there are a few ways to detect the version of Windows Server and whether it is 32-bit or 64-bit in the command line. The ver command can be used to return the full version of the operating system, including the edition, service pack and build number. The wmic command can be used to return the complete version information, including the architecture type. The systeminfo command can be used to return extensive system information, including the version of Windows Server that is running. Finally, the registry editor can be used to view the ProductName and SystemType values which contain the full version and architecture type of the operating system.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo