Home

Google
 

How do I Disable Windows Product Activation Notices with VBscript?

If you are interested in disabling the Windows product activation notices with a vbscript then the following steps maybe of interest to you:

  1. In the root of your system drive save the following in a text file
  2. 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

  3. Replace computer with the name of the target computer. Bolded items should be on the same line in the script.
  4. Name the file deactivate.vbs
  5. open a CMD prompt and change directory to c:>
  6. Run the following command:
  7. c:> cscript deactivate.vbs


powered by FreeFind