SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Afficher les options de démarrage

Accueil > Script > maintenance > Afficher les options de démarrage

Afficher les options de démarrage

Par Joachim GOMARD, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 24/10/2004 vers 0h.

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

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft