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 colStartupCommandsWscript.Echo "Reset Boot Enabled: " & _objStartupCommand.AutomaticResetBootOptionWscript.Echo "Reset Boot Possible: " & _objStartupCommand.AutomaticResetCapabilityWscript.Echo "Boot State: " & objStartupCommand.BootupStateWscript.Echo "Startup Delay: " & objStartupCommand.SystemStartupDelayFor i = 0 to Ubound(objStartupCommand.SystemStartupOptions)Wscript.Echo "Startup Options: " & _objStartupCommand.SystemStartupOptions(i)NextWscript.Echo "Startup Setting: " & _objStartupCommand.SystemStartupSettingNext
This is a VB Script, this can be used by saving the file in .vbs file