Skip to content

Instantly share code, notes, and snippets.

@arebee
Created July 30, 2015 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arebee/3bb87840b1b912592a7f to your computer and use it in GitHub Desktop.
Save arebee/3bb87840b1b912592a7f to your computer and use it in GitHub Desktop.
PowerShell to get the Windows OS SKU
Get-WmiObject -Class Win32_OperatingSystem -Namespace "root\cimv2" | format-list Caption, Version
@nameisstolen
Copy link

That is not the system SKU. That produces the OS build #

@zacbrown
Copy link

zacbrown commented Jun 9, 2023

Caption is the SKU. For example:

PS G:\code> Get-WmiObject -Class Win32_OperatingSystem -Namespace "root\cimv2" | format-list Caption, Version
>>


Caption : Microsoft Windows 10 Pro
Version : 10.0.19045

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment