Page 1 of 1
Product Activated or not ? in command line ? or vbs ?
#1
Posted 20 December 2006 - 03:56 PM
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!
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!
#2
Posted 20 December 2006 - 10:42 PM
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..
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..
This post has been edited by elajua: 20 December 2006 - 10:42 PM
#3
Posted 21 December 2006 - 05:38 AM
MGADiag.exe is nice util, but I havn't find any info about command line options or output log
#4
Posted 21 December 2006 - 05:38 AM
MGADiag.exe is nice util, but I havn't find any info about command line options or output log
#5
Posted 28 December 2006 - 10:26 AM
start/run
%SYSTEMROOT%\system32\oobe\msoobe.exe /A
if 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
)
%SYSTEMROOT%\system32\oobe\msoobe.exe /A
if 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
#6
Posted 29 December 2006 - 07:09 AM
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:
Hope this helps.
Ponghy.-
You can write a VBS script to do this. More info here.
Here is explained how to implement this.
See the following example:
Option Explicit
Dim obj, activated
For 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 If
Next
If 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 = Nothing
End If
Hope this helps.
Ponghy.-
This post has been edited by ponghy: 29 December 2006 - 07:41 AM
#8
Posted 29 December 2006 - 06:32 PM
Ok, you're welcome. Let me know if it works (it should).
- ← Is there an official SFX Plugin for 7-zip?
- Application Installs
- [request] ZoomPlayer wmv Pro and BitComet →
Share this topic:
Page 1 of 1



Help
Back to top









