Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[How-to] Detect license type of windows

Featured Replies

Yes it's possible ...

Batch to detect Windows license, OEM or VL

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

Credits to Yzöwl for his batch's knowledge !

Title edited as per request. --Zxian

at command prompt type

"ver"

(without quotes)

thanks

EDIT:

hmm that doesnt display home pro or corp, thats stupid! lol

Edited by eyeball

  • Author

okay Dr.God, but it's limited for just Home & Pro, for Corporate edition, I don't have any idea ...

  • Author

hmm programming a exe just for that is too complicated for me (I must reinstall my old visual studio 2003 provided by my school ^^ ... and take several time ...)

I think there is a file/registry key/whatever differs from each channel (in fact is term from Microsoft to design 'version' Home,Pro, Corp) of Windows XP.

Edited by sonic

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

  • Author

okay gunsmokingman, but it's just for Pro or Home version ...

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 ...

Reading http://www.msfn.org/board/index.php?showtopic=61066, I will check the key [HKEY_LOCAL_MACHINE\SYSTEM\Setup\Pid] ...

Thanks all.

Goodbye.

EDIT:

My main command form my batch to check my windows xp version :

for /f "skip=4 tokens=3" %%i in ('reg query HKLM\SYSTEM\Setup\Pid /v Pid') do set Pid=%%i

Edited by sonic

Open Run Box and type "winver" without quote.

It is so simple. :lol::lol::lol:

Pawan

  • Author

Where you see if windows xp is pro or corporate ?? To detect Home or Pro version no problem ...

U can also checket from the property of my computer

  • Author

@Yahoo : not for corporate version ... there isn't differences between oem and corporate/vlk in windows itself ... we must check pid (or other regkey/files) or develop an exe in .net/c using microsoft api ...

  • 1 month later...
  • Author

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

Credits to Yzöwl for his batch's knowledge !

Edited by sonic

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.