As the question above, how to do the sorting and filter out the windows products such as operating system, microsoft products and so on follow their products licenses types ?


Example like, 

Windows 7 Professional 64-Bits     - OEM

Windows 7 Professional 64-Bits     - Open License

Windows 7 Professional 64-Bits     - Full Pack                      and so on.


Please help and it is urgent for me...


0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


I found some things that might help:

1. Something like this run from a command prompt would give you the Windows version:

cscript slmgr.vbs /dli >c:\version.txt

You could use this article to get it into the KBOX:

slmgr will work for Office too if you are using KMS for licensing.

2. Something like this might work too if it was installed on each machine. I think it's primarily for keys, but those should be separate as well for each type so it might help:

ProduKey.exe /windowskeys 1 /officekeys 1 /iekeys 0 /sqlkeys 0 /exchangekeys 0 /extractedition 1 /scomma keys.csv
cscript.exe keys.vbs

3. It looks like you could also create a custom inventory rule that looks for this in Windows:


007 : retail
011 : upgrade
270 : Volume License
335 : Retail
640 : Volume License
648 : Academic

4. Product ID might work as well: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

A list I found here shows the following:

OEM - OEM SLP or OEM System Builder (MGAdiag will distinguish in the License Type field)
        007 - VLK MAK
        033 - Retail Windows 7 Home Premium
        049 - VLK MAK
        050 - Technet Plus Enterprise MAK
        065 - Technet/MSDN/Bizspark Windows 7 Ultimate
        066 - Technet/MSDN/Bizspark Windows 7 Ultimate
        067 - Technet/MSDN/Bizspark Windows 7 Ultimate
        074 - Retail Windows 7 Ultimate
        112 - Retail Windows 7 Home Premium (conflicting info says MSDN)
        177 - Retail Windows 7 Professional
        220 - Technet/MSDN/Bizspark Windows 7 Professional
        230 - Technet/MSDN/Bizspark Windows 7 Home Premium
        231 - Technet/MSDN/Bizspark Windows 7 Home Premium
        292 - Retail Windows 7 Ultimate?
        293 - Retail Windows 7 Ultimate? (maybe Academic)
        339 - Retail Windows 7 Home Basic
        838 - Technet/MSDN/Bizspark Windows 7 Professional
        896 - Retail Windows 7 Home Basic N
        929 - Retail Windows 7 Home Basic E
        956 - Retail Windows 7 Ultimate (Genuine Advantage store?)

5. There is also a VBscript that might help here:

Answered 09/10/2012 by: jknox
Red Belt

  • If you find something that works, post it here.
Please log in to comment



I use ProduKey and it works well - just be aware that Win7's defender may identify it as a keyfinder (can just ignore or allow).

For Windows, OEM versions will post the full serial and volume license, etc versions tend to list all "B"s (BBBB-BBBB-BBBB... ).

Here's a variation of my setup that should work if you want to give it a shot.


Online KScript

Run As User Logged in to console

Dependencies - browse to ProduKey.exe and upload

Verify - always fail

Remediation - launch app with parameters

File        ProduKey.exe
    X    Wait for startup
Parameters    /OfficeKeys 0 /IEKeys 0 /SQLKeys 0 /ExchangeKeys 0 /stext c:\%YourOutputFolderHere%\produkey.txt

On Remediation Success - Successfully ran ProduKey export.

On Remediation Failure - Failed to run ProduKey export.

Inventory - Software

* ProduKey Key Retrieval

ShellCommandTextReturn(cmd /c type c:\KBOX\produkey.txt)


Hope that helps!


Answered 09/11/2012 by: jverbosk
Red Belt

Please log in to comment


So, I found this post when researching the issue, and came up with a rather simpler solution than I saw in the least one that simplified it for me:

  1. Create a Custom Inventory Field (CIF) to return the Registry entry listed above: RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\Setup\Pid, Pid, NUMBER)
  2. Consult the PID number --> License Type list from above:
    1. 007 : retail
      011 : upgrade
      OEM : OEM
      270 : Volume License
      335 : Retail
      640 : Volume License
      648 : Academic
  3. Create Smart Labels to group machines by the CIF value:  

Voila!  You now know which machines are using Volume vs. OEM vs. Retail, etc. Windows licenses.

Notes:  Tested and verified to work with Windows 7, Windows 8.1, and Windows 2012 Server.

Ron Colson

KACE Koach

Answered 03/27/2014 by: ronco
Second Degree Brown Belt

Please log in to comment

Addition information, currently my company Dell Kace version is K1000.

Answered 09/09/2012 by: wongyt
Senior White Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja