How do I Disable Windows Product Activation Notices with VBscript?
Posted on August 28th, 2007 by thehabgroup
If you are interested in disabling the Windows product activation notices with a vbscript then the following steps maybe of interest to you:
- In the root of your system drive save the following in a text file
- Set objWMI = GetObject(”winmgmts:{impersonationLevel=
impersonate}!\\” & computer & “\root\cimv2″)Set objWPA = objWMI.ExecQuery(”Select * from
Win32_WindowsProductActivation”)For Each PA in objWPA
PA.SetNotification(0)
Next - Replace computer with the name of the target computer. Bolded items should be on the same line in the script.
- Name the file deactivate.vbs
- open a CMD prompt and change directory to c:>
- Run the following command:
- c:> cscript deactivate.vbs
impersonate vbscript windows product activationimpersonate vbscript windows product activation
No Comments »
Filed under: vbscript

