muralla Posted February 24, 2010 Share Posted February 24, 2010 (edited) Hi all ¡¡I have a script for activate windows. $objWMI = ObjGet("winmgmts:\\localhost\root\CIMV2");$ColItems = $objWMI.ExecQuery("Select * from Win32_WindowsProductActivation", "WQL", 0x10 + 0x20);For $objItem In $ColItems $var = $objItem.ActivationRequired ;$var is the value of the activationNext;********AFTHER THIS NEXTN THE FUNCTION RESTARTS ONE TIME,AFTHER THAT IT CAN PASS THE NEX...Finally, afther, it not respects the end function and the function restarts ¿?more codemore code endfuncthanks all and sorry to my bad english ¡¡¡¡ Edited February 24, 2010 by muralla Link to comment Share on other sites More sharing options...
muralla Posted February 24, 2010 Author Share Posted February 24, 2010 Hi all ¡¡I have a script for activate windows. thanks all and sorry to my bad english ¡¡¡¡for $objitm in $colitems$activado=$objitm.activateonline()nextend funcThis restarts ever the function if you dont have for example, conection to activate windows... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now