CommandLineEventConsumer
Executes command in response to an event, see the Win32 SDK documentation for CreateProcess for more complete description of properties.
Properties
Most WMI properties are read-only. You can only read values but not change them. Few properties are also writeable. You can assign new values to those properties.
Writeable properties are marked with this icon:
CommandLineTemplate
Data type String
Command line string
CreateNewConsole
Data type Boolean
The new process has a new console. Note: This property has been Deprecated in Windows XP and is no longer used.
CreateNewProcessGroup
Data type Boolean
The new process is the root process of a new process group.
CreateSeparateWowVdm
Data type Boolean
The new process runs in a private Virtual DOS Machine (VDM).
CreateSharedWowVdm
Data type Boolean
If the DefaultSeparateVDM switch in the Windows section of WIN.INI is $true, this flag causes the CreateProcess function to override the switch and run the new process in the shared Virtual DOS Machine.
CreatorSID
Data type UInt8
DesktopName
Data type String
Either the name of the desktop only or the name of both the desktop and window station for this process. Note: This property has been Deprecated in Windows XP and is no longer used.
ExecutablePath
Data type String
Name of executable module
FillAttribute
Data type UInt32
Specifies the initial text and background colors if a new console window is created in a console application
ForceOffFeedback
Data type Boolean
Indicates that the feedback cursor is forced off while the process is starting.
ForceOnFeedback
Data type Boolean
Indicates that the cursor is in feedback mode for two seconds after CreateProcess is called.
KillTimeout
Data type UInt32
Number of seconds that child process is allowed to run; if zero, process will not be terminated
MachineName
Data type String
MaximumQueueSize
Data type UInt32
Name
Data type String
A unique identifier for this instance
Priority
Data type SInt32
Used to determine the scheduling priorities of the process’s threads
RunInteractively
Data type Boolean
Indicates that the process has access to the desktop.
ShowWindowCommand
Data type UInt32
The ShowWindowCommand can be any of the SW_ constants defined in WINUSER.H.
UseDefaultErrorMode
Data type Boolean
New process inherits the error mode of the calling process.
WindowTitle
Data type String
For console processes, this is the title displayed in the title bar if a new console window is created
WorkingDirectory
Data type String
Default directory used by process
XCoordinate
Data type UInt32
Specifies the x coordinate of the upper left corner of a window
XNumCharacters
Data type UInt32
For a console process, specifies the width of the window in characters
XSize
Data type UInt32
Specifies the width of the window
YCoordinate
Data type UInt32
Specifies the y coordinate of the upper left corner of a window
YNumCharacters
Data type UInt32
For a console process, specifies the height of the window in characters
YSize
Data type UInt32
Specifies the height of the window
Community Content
You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!
Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.
Content last updated: 2013-12-27 12:32:15 (UTC).