Win32_CommandLineAccess class
The Win32_CommandLineAccess WMI class represents the command line interface to a service or application. The name of the access point is always the full command line text.
Note For more information about support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_CommandLineAccess : CIM_ServiceAccessPoint
{
string Caption;
string CommandLine;
string CreationClassName;
string Description;
datetime InstallDate;
string Name;
string Status;
string SystemCreationClassName;
string SystemName;
uint32 Type;
};
Members
The Win32_CommandLineAccess class has these types of members:
Properties
The Win32_CommandLineAccess class has these properties.
- Caption
-
- Data type: string
- Access type: Read-only
Short textual description of the object—a one-line string.
- CommandLine
-
- Data type: string
- Access type: Read-only
String used to start the service.
- CreationClassName
-
- Data type: string
- Access type: Read-only
Name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
- Description
-
- Data type: string
- Access type: Read-only
Textual description of the object.
- InstallDate
-
- Data type: datetime
- Access type: Read-only
Object was installed. This property does not need a value to indicate that the object is installed.
- Name
-
- Data type: string
- Access type: Read-only
Unique identifier of the service access point and an indication of the functionality that is managed. This functionality is described in more detail in the object's Description property.
- Status
-
- Data type: string
- Access type: Read-only
Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states.
Values are the following:
- "OK"
- "Error"
- "Degraded"
- "Unknown"
- "Pred Fail"
- "Starting"
- "Stopping"
- "Service"
- SystemCreationClassName
-
- Data type: string
- Access type: Read-only
Scoping system's creation class name.
- SystemName
-
- Data type: string
- Access type: Read-only
Scoping system's name.
- Type
-
- Data type: uint32
- Access type: Read-only
Windows Server 2003 and Windows XP: Type of service access point (SAP).Values are the following:
Value Meaning - 1
Write
- 2
Read
- 4
Redirected
- 8
Net_Attached
- 16
Unknown
Remarks
The Win32_CommandLineAccess class is derived from CIM_ServiceAccessPoint.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012