I am looking for a VBScript which checks if the installed OS is genuine or not. Is there anyway to check programmatically?
0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


AFAIK, there's no easy scripting interface to the API but you might be able to use DynaWrap to link to the DLL and function call. Alternatively, you could build your own script-friendly interface to the DLL.
Answered 11/08/2010 by: VBScab
Red Belt

Please log in to comment
interesting question, I didn't see any vbscript or wmi but I there are a couple of dlls you can use
Answered 11/08/2010 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
[hr][hr]hello sir how are you this is great fourm
Answered 11/13/2010 by: george22
Yellow Belt

Please log in to comment
Thanks. I used the "LegitCheckControl.DLL" to check the genuiness.

Dim objGen As New LegitCheckControlLib.LegitCheck
If objGen.IsAlreadyGenuine = True then
msgbox "This is a Genuinen windows version."
msgbox "This is NOT a Genuinen windows version."
End If
Answered 12/01/2010 by: murali.bhat
Purple Belt

Please log in to comment
would this vbscript work built in to windows? Try it from a command prompt first.

cscript %WINDIR%\System32\slmgr.vbs /dli

Maybe you can open her up and find some specific code in there that will help ya.
Answered 12/21/2010 by: hashref
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity