Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Computer Startup CommandsContent of List Computer Startup Commands.vbsMD5 Hash: 2EA0386A3A1C68250D67F79D68CA7662 |
||
' Description: Enumerates all startup commands on a computer, including those found in the Startup folder and those found in the Registry.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colStartupCommands = objWMIService.ExecQuery _ ("Select * from Win32_StartupCommand") For Each objStartupCommand in colStartupCommands Wscript.Echo "Command: " & objStartupCommand.Command Wscript.Echo "Description: " & objStartupCommand.Description Wscript.Echo "Location: " & objStartupCommand.Location Wscript.Echo "Name: " & objStartupCommand.Name Wscript.Echo "Setting ID: " & objStartupCommand.SettingID Wscript.Echo "User: " & objStartupCommand.User Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |