Finding Out Windows Version

by Nov 26, 2014

All PowerShell Versions

Do you own Windows 8.1 Basic, Pro, or Enterprise? Finding out the Windows version is easy. Finding out the exact subtype is not so trivial.

At best, you may get the SKU number which tells you exactly the Windows version you have, but it’s again not trivial to translate back the number to a meaningful name:

 
PS> Get-WmiObject -Class Win32_OperatingSystem | Select-Object -ExpandProperty OperatingSystemSKU

48  
 

A better way may be this line which returns a clear text description of the license type you are using:

 
PS> Get-WmiObject SoftwareLicensingProduct -Filter 'Name like "Windows%" and LicenseStatus=1' | Select-Object -ExpandProperty Name 

Windows(R), Professional edition
 

Another approach could be this which will include the major Windows version as well:

 
PS> Get-WmiObject -Class Win32_OperatingSystem | Select-Object -ExpandProperty Caption

Microsoft Windows 8.1 Pro  

Twitter This Tip! ReTweet this Tip!