Jump to content

Product Activated or not ?


Sonic

Recommended Posts


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 by elajua
Link to comment
Share on other sites

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 :D (i m still a newbie :unsure: )

Link to comment
Share on other sites

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

Edited by ponghy
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...