Categories
Microsoft

Checking windows OS version remotely

Getting OS version remotely

Normally, there are a few places where you can check the OS version your computer is running.

One place you can check that is in System Information. (by launching msinfo32.exe)

You can also get that info from Winver (do a search of Winver and launch it)

Settings -> System -> About is another place that you can find this info.

If you need to find out the version of a remote machine, you can either RDP to that machine to get the information or ask the user to look it up for you. However, you can also do it with a remote PowerShell Session.

To look for the OS version, establish a remote PowerShell session.

Either CMD will get you the information you need.

[System.Environment]::OSVersion

[System.Environment]::OSVersion.Version

Below is a list of OS version taken from a Microsoft documentation.

Operating systemVersion numberdwMajorVersiondwMinorVersionOther
Windows 1010.0*100OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION
Windows Server 201610.0*100OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION
Windows 8.16.3*63OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION
Windows Server 2012 R26.3*63OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION
Windows 86.262OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION
Windows Server 20126.262OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION
Windows 76.161OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION
Windows Server 2008 R26.161OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION
Windows Server 20086.060OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION
Windows Vista6.060OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION
Windows Server 2003 R25.252GetSystemMetrics(SM_SERVERR2) != 0
Windows Home Server5.252OSVERSIONINFOEX.wSuiteMask & VER_SUITE_WH_SERVER
Windows Server 20035.252GetSystemMetrics(SM_SERVERR2) == 0
Windows XP Professional x64 Edition5.252(OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION) && (SYSTEM_INFO.wProcessorArchitecture==PROCESSOR_ARCHITECTURE_AMD64)
Windows XP5.151Not applicable
Windows 20005.050Not applicable

If you are running Windows 10, refer to below list for the build associate with the version.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s