- WMI Library -
WMI Libraly > Win32_StartupCommand Class

Win32_StartupCommand Class

The Win32_StartupCommand class represents a command that runs automatically when a user logs onto the computer system.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32.


  • Caption
  • A short textual description (one-line string) of the CIM_Setting object.

  • Command
  • The Command property indicates the string representing the command line run by the startup command.
    Example: c:\winnt\notepad.exe myfile.txt.

  • Description
  • A textual description of the CIM_Setting object.

  • Location
  • The Location property indicates the path where the startup command resides on the disk file system.

  • Name
  • The Name property indicates the filename of the startup command.
    Example: FindFast

  • SettingID
  • The identifier by which the CIM_Setting object is known.

  • User
  • The User property indicates the user name for whom this startup command will run.
    Example: mydomain\myname.

  • UserSID
  • The UserSID property indicates the SID of the user for whom this startup command will run. That User property may be empty but UserSID still has a value if the user name can't be resolved (like in the case of a deleted user). The property is helpful to distinguish between commands associated w/ two different users with unresolved names. It may be NULL when the command is associated with items not actually identifying a user like All Users.


    Method not found.

    Example WQL

    SELECT * FROM Win32_StartupCommand
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...