Activer un script VBS

Activer un script VBS - VB/VBA/VBS - Programmation

Marsh Posté le 03-02-2006 à 12:01:11    

Bonjour à tous ,  
quelqu'un pourrait-il m'indiquer comment je dois utiliser un script VBS    , en l'occurence celui-ci:  
______________________________  
 
strComputer = "."  
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2" )  
 
Set colWindowsProducts = objWMIService.ExecQuery  ("Select * from Win32_WindowsProductActivation" )  
 
For Each objWindowsProduct in colWindowsProducts  
    objWindowsProduct.ActivateOffline("Numéro d'activation" )  
Next  
______________________________  
 
merci de vos réponses !  
Je suis totalement débutant  :D  
 

Reply

Marsh Posté le 03-02-2006 à 12:01:11   

Reply

Marsh Posté le 03-02-2006 à 12:54:02    

tu copies tout ça dans un fichier texte que tu nomme "MonScript.vbs" et tu double clique dessus


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
Reply

Marsh Posté le 03-02-2006 à 17:29:49    

Merci , mais comment "la fonction" va t'elle s'éxécuter ?

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed