Description : Ce script VBS vous affiche les options de démarrage de votre systeme d'exploitation.
Script :
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colStartupCommands = objWMIService.ExecQuery _ ("Select * from Win32_ComputerSystem")
For Each objStartupCommand in colStartupCommands Wscript.Echo "Reset Boot Enabled: " & _ objStartupCommand.AutomaticResetBootOption Wscript.Echo "Reset Boot Possible: " & _ objStartupCommand.AutomaticResetCapability Wscript.Echo "Boot State: " & objStartupCommand.BootupState Wscript.Echo "Startup Delay: " & objStartupCommand.SystemStartupDelay For i = 0 to Ubound(objStartupCommand.SystemStartupOptions) Wscript.Echo "Startup Options: " & _ objStartupCommand.SystemStartupOptions(i) Next Wscript.Echo "Startup Setting: " & _ objStartupCommand.SystemStartupSetting Next
Proposer un script
|
Notre avis :

Votre avis :

Réactions : 0
Votants : 1
Visites : 11255
|