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 colStartupCommandsWscript.Echo "Command: " & objStartupCommand.CommandWscript.Echo "Description: " & objStartupCommand.DescriptionWscript.Echo "Location: " & objStartupCommand.LocationWscript.Echo "Name: " & objStartupCommand.NameWscript.Echo "SettingID: " & objStartupCommand.SettingIDWscript.Echo "User: " & objStartupCommand.UserNext
This is a VB Script, this can be used by saving the file in .vbs file