Home > OS >  Under Windows activation how to write a program to judge the Windows operating system
Under Windows activation how to write a program to judge the Windows operating system

Time:09-18

How to write a program to judge the Windows operating system under Windows have activated,

CodePudding user response:

What is your version of the operating system, if you want to see doing/version 8.1 activation details command Win + R===& gt;
Input: slmgr.vbs. VBS - DLV shows: the activation of the most detailed information, including: the activation ID, installation ID, activate the deadline and so on

CodePudding user response:

Reference slmgr.vbs. VBS?

CodePudding user response:

Right-click my computer, and click properties should be can see whether the machine system and activated

CodePudding user response:

refer to the original poster sinat_16056983 response:
Windows how to write a program to judge the Windows operating system ever activated,


Windows batch implementations, save as CheckWindowsAuthStatus. Bat

[code]
@ echo off
Rem only for simplified Chinese
Cscript/nologo "% windir % \ system32 \ slmgr.vbs VBS"/dli | find "authorized"
If errorlevel exit/b 1
[/code]

Return code 1, said outside the "authorized",
The return code 0, says it has authorized,

CodePudding user response:

Get a

CodePudding user response:

Win + R v "run" window, enter: slmgr.vbs. VBS - DLV

CodePudding user response:

The
reference 4 floor Pale_Cheung reply:
Quote: refer to the original poster sinat_16056983 response:

Under Windows how to write a program to judge the Windows operating system ever activated,


Windows batch implementations, save as CheckWindowsAuthStatus. Bat

[code]
@ echo off
Rem only for simplified Chinese
Cscript/nologo "% windir % \ system32 \ slmgr.vbs VBS"/dli | find "authorized"
If errorlevel exit/b 1
[/code]

Return code 1, said outside the "authorized",
The return code 0, says it has authorized,


CodePudding user response:

Win + R===& gt;
Input: slmgr.vbs. VBS - DLV shows: the activation of the most detailed information, including: the activation ID, installation ID, activate the deadline and so on

CodePudding user response:

Windows Vista and above, use API SLIsGenuineLocal xp to use WMI, but must be started the WMI service
  • Related