par exemple:
"To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege. For more information, see Running with Special Privileges."
cs_JMO
Messages postés1854Date d'inscriptionjeudi 23 mai 2002StatutMembreDernière intervention24 juin 201827 19 juil. 2007 à 10:51
Bonjour,
Le shutdown existe aussi avec le wmi.
For Each objOperatingSystem in GetObject("winmgmts:{(Shutdown)}").ExecQuery _
("Select * from Win32_OperatingSystem")
ObjOperatingSystem.Win32Shutdown(1)
Next
jean-marc
Vous n’avez pas trouvé la réponse que vous recherchez ?