Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Computer Startup OptionsContent of List Computer Startup Options.vbsMD5 Hash: 59052E9C563874C19F368DAF808A6C28 |
||
' Description: Returns a list of startup options for a computer, including the startup delay time and other information found in Boot.ini.
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 | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |