windows.activation/CLIENT_DATA/ms-activation.vbs

7 lines
298 B
Plaintext
Raw Normal View History

2012-06-14 13:03:57 +02:00
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("win32_WindowsProductActivation")
if Obj.ActivationRequired <> 0 then
'If necessary, save/set proxy
Obj.ActivateOnline()
'If necessary, restore proxy
end if
next