Description : Voici comment redémarrer une machine avec un script VBS :
Script :
strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems objOperatingSystem.Reboot() Next
Proposer un script
|
Notre avis :

Votre avis :

Réactions : 0
Votants : 7
Visites : 22361
|