Jump to content

[How-to] Detect license type of windows


Sonic

Recommended Posts

I think there is no differences between corp/vlk and pro in windows, but I think there is registry key or files for activation differs with retail version ...

Their is no difference between XP Pro OEM, Retail, Academic or "Corporate" versions except for the Media and Keys used to install them...and that Academic and "Corporate" licenses don't require activation. The same Service Packs, Patches, Updates, Addons, tweaks, etc, etc apply to all of them. They're all just different licenses for the same version of Windows XP Professional.

Link to comment
Share on other sites


Guest bush911
Try this VBS script

strComputer = "."

Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")

For Each objOperatingSystem in colOperatingSystems

Msgbox objOperatingSystem.Caption & " " & objOperatingSystem.Version, 0 + 32,"Window Version"

Next

the script dose not work.

post-84921-1136980802_thumb.jpg

Link to comment
Share on other sites

I just open up the EULA.txt file and scroll waaaaay down to the bottom and grab the version from there, it'll either say OEM, VLM, or RTL depending on what version... It's been about 98% accurate for me...

Not installed (so I don't know the product ID) - from MSDN:

Windows XP Professional N English VL - EULAID:XPSP2_RM.4_RME-PRO_RTL_EN

Windows XP Professional English x64 - EULAID:WS03SP1_RM.0_PX64_RTL_EN

Windows XP Media Center Edition 2005 English - EULAID:MCE05_RM.0_PRO_RTL_EN

Windows XP Professional English - EULAID:WX.4_PRO_RTL_EN

Windows XP Professional with SP1a English - EULAID:XPSP1_RM.1_PRO_RTL_EN

Windows XP Professional with SP2 English - EULAID:XPSP2_RM.0_PRO_RTL_EN

Windows XP Professional with SP2 English VL - EULAID:XPSP2_RM.0_PRO_RTL_EN

Windows Server 2003 Standard - EULAID:WNET_RM.5_SRV-ENT_RTL_EN

Windows Server 2003 Standard with SP1 - EULAID:WS03SP1_RM.2_STD-ENT_RTL_EN

Windows Server 2003 Enterprise with SP1 - EULAID:WS03SP1_RM.2_STD-ENT_RTL_EN

It means there is no difference between VL and RTL.

Petr

Link to comment
Share on other sites

Improved batch to detect Corporate version of Windows

for /f "skip=4 tokens=3" %%? in ('reg query HKLM\SYSTEM\Setup\Pid /v Pid') do set Pid=%%?
set Pid=%Pid:~-3%
if '%Pid%'=='270' echo Corporate version detected && WhatCommandYouWant
if not '%Pid%'=='OEM' echo OEM version detected && WhatOtherCommandYouWant
exit

that detects mine as OEM. in my eula, RTL is listed. both are incorrect. mine is VLK.

Look at your product ID in the System Property sheet.

First set:

55274 : XP Professional

55276 : XP Professional upgrade

55276 : XP Home

55277 : XP Home

55285 : XP Professional

76487 : XP Media Center Edition 2005

76487 : XP Pro Royalty OEM

76487 : XP Pro volume license (with '640' channel ID)

Second set:

007 : retail

011 : upgrade

OEM : OEM

270 : Volume License

335 : Retail

640 : Volume License

648 : Academic

this works for me :)

Link to comment
Share on other sites

okay I rename corporate to vl ...

@atomizer: It's genuine media or mixed media ? because the batch read directly in registry if your version is oem or not ... it's strange if oem string is present and you have a volume license ...

Link to comment
Share on other sites

@sonic - don't know what you mean by the media type.

i started off with a standard VLK version, but now i always use nLite. but yeah, like i said, the BAT returns OEM, the eula returns RTL and the number thingy in computer properties returns VLK. i know the latter is correct. it's not a 'cracked' version or anything - i wouldn't be posting this if it were :)

Edited by atomizer
Link to comment
Share on other sites

in fact I have made a typo ...

replace "if not" by if ... so :

for /f "skip=4 tokens=3" %%? in ('reg query HKLM\SYSTEM\Setup\Pid /v Pid') do set Pid=%%?
set Pid=%Pid:~-3%
if '%Pid%'=='270' echo WinXP VL version detected && WhatCommandYouWant
if '%Pid%'=='OEM' echo WinXP OEM version detected && WhatOtherCommandYouWant
exit

I will complete the if condition to detect other version ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...