Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
drobertson
Engaged Sweeper III
Add the custom asset action:


{actionpath}list_startup_commands.vbs {computer}


then the content of "list_startup_commands.vbs" is:


' List Computer Startup Commands

strComputer = WScript.Arguments(0)
Set objShell = CreateObject("Wscript.Shell")

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colStartupCommands = objWMIService.ExecQuery _
("Select * from Win32_StartupCommand")

For Each objStartupCommand in colStartupCommands
strMsg = strMsg & "" & VbCrLf
strMsg = strMsg & "Command: " & objStartupCommand.Command & VbCrLf
strMsg = strMsg & "Description: " & objStartupCommand.Description & VbCrLf
strMsg = strMsg & "Location: " & objStartupCommand.Location & VbCrLf
strMsg = strMsg & "Name: " & objStartupCommand.Name & VbCrLf
strMsg = strMsg & "Setting ID: " & objStartupCommand.SettingID & VbCrLf
strMsg = strMsg & "User: " & objStartupCommand.User & VbCrLf
Next

objShell.Popup strMsg, AUTO_DISMISS, "Computer Startup Commands", OK_BUTTON
1 REPLY 1
Keager
Engaged Sweeper

Is this a report or something to run on your local device? Not a lot of general instruction here. It is what I'm looking for to see what is in the startup. 

General Discussions

Find answers to technical questions about Lansweeper.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now