Enumerates all startup commands on a computer, including those found in the Startup folder and those found in the Registry. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more information on downloading these items see the Windows PowerShell download page (right).

PowerShell
Edit|Remove
$strComputer = "."

$colItems = get-wmiobject -class "Win32_StartupCommand" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
      write-host "Caption: " $objItem.Caption
      write-host "Command: " $objItem.Command
      write-host "Description: " $objItem.Description
      write-host "Location: " $objItem.Location
      write-host "Name: " $objItem.Name
      write-host "Setting ID: " $objItem.SettingID
      write-host "User: " $objItem.User
      write-host
}