MSFN Forum: Product Activated or not ? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Product Activated or not ? in command line ? or vbs ? Rate Topic: -----

#1 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,600
  • Joined: 04-December 03

  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!


#2 User is offline   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 16-April 05

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

This post has been edited by elajua: 20 December 2006 - 10:42 PM


#3 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,600
  • Joined: 04-December 03

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 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,600
  • Joined: 04-December 03

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 User is offline   darafat 

  • Newbie
  • Group: Members
  • Posts: 41
  • Joined: 21-December 06

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

#6 User is offline   ponghy 

  • MSFN Student
  • PipPip
  • Group: Members
  • Posts: 175
  • Joined: 21-April 05

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


#7 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,600
  • Joined: 04-December 03

Posted 29 December 2006 - 05:28 PM

Thanks ponghy, I will use your script.

#8 User is offline   ponghy 

  • MSFN Student
  • PipPip
  • Group: Members
  • Posts: 175
  • Joined: 21-April 05

Posted 29 December 2006 - 06:32 PM

Ok, you're welcome. Let me know if it works (it should).

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy