Sonic Posted December 20, 2006 Share Posted December 20, 2006 Hi all,How can I detect if Windows is activated or not ?With command line or vbscript , file detection ?It's interesting to install IE7 & WMP11.Thanks! Link to comment Share on other sites More sharing options...
ajua Posted December 21, 2006 Share Posted December 21, 2006 (edited) thats a good question. have you searched microsoft's KB?one thing i can think of know is to monitor a windows activation routine and see what changed...another thing is to monitor Microsoft Genuine Advantage Diagnostic Tool to see what it checks...hope this helps.. Edited December 21, 2006 by elajua Link to comment Share on other sites More sharing options...
Sonic Posted December 21, 2006 Author Share Posted December 21, 2006 MGADiag.exe is nice util, but I havn't find any info about command line options or output log Link to comment Share on other sites More sharing options...
Sonic Posted December 21, 2006 Author Share Posted December 21, 2006 MGADiag.exe is nice util, but I havn't find any info about command line options or output log Link to comment Share on other sites More sharing options...
darafat Posted December 28, 2006 Share Posted December 28, 2006 start/run%SYSTEMROOT%\system32\oobe\msoobe.exe /Aif it is already activated the dialog box will say 'your copy of windows is already activated' p.s: i don't know if it is what you want, but you can try (i m still a newbie ) Link to comment Share on other sites More sharing options...
ponghy Posted December 29, 2006 Share Posted December 29, 2006 (edited) You can do this programatically by using the Win32_WindowsProductActivation WMI class.You can write a VBS script to do this. More info here.Here is explained how to implement this.See the following example:Option ExplicitDim obj, activatedFor Each obj In GetObject("WinMgmts:{impersonationLevel=impersonate}").InstancesOf("Win32_WindowsProductActivation") ' You need the ActivationRequired field of the current instance (e.g., "current computer"). If obj.ActivationRequired = 0 Then activated = True Else activated = False End IfNextIf activated Then ' Install IE 7, WMP11... Set obj = CreateObject("WScript.Shell") obj.Run "your_command_line1_here", 0, True obj.Run "your_command_line2_here", 0, True obj.Run "your_command_line3_here", 0, True ' ... etc. ' Free resources. Set obj = NothingEnd IfHope this helps.Ponghy.- Edited December 29, 2006 by ponghy Link to comment Share on other sites More sharing options...
Sonic Posted December 29, 2006 Author Share Posted December 29, 2006 Thanks ponghy, I will use your script. Link to comment Share on other sites More sharing options...
ponghy Posted December 30, 2006 Share Posted December 30, 2006 Ok, you're welcome. Let me know if it works (it should). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now