MSFT_Computer Class
Note
The MOM WMI classes has been deprecated and should not be used when creating new scripts. The WMI classes are included only to support existing scripts.
The MSFT_Computer WMI class represents all computers managed by MOM, including MOM agent computers, the computer running MOM, and the SQL Server computer hosting the MOM database.
This class is also used to manage computers that do not have a MOM agent installed, such as non-Windows computers. Several methods of this class will only work when called on class instances representing programmatically created computers.
The MSFT_Computer class provides support for the following WMI methods.
Method | Supported? | Comment |
---|---|---|
GetObjectAsync_ | Yes | None. |
PutInstanceAsync_ | Yes | New objects can be created. The GUID and Name properties of new objects must have values assigned. Default values are assigned to all other properties. When called on an existing object, modified property values are saved only for computers that were added through WMI. |
DeleteInstanceAsync_ | Yes | Only computers added using WMI can be deleted. |
CreateInstanceEnumAsync_ | Yes | None. |
ExecQueryAsync_ | Yes | WQL queries that use the ORDER BY qualifier are accepted. |
ExecMethodAsync_ | Yes | Supported by instance methods and static class methods. |
Methods
Name | Description |
---|---|
Inserts one or more events into the workflow on the server running MOM. |
|
Inserts performance data into the workflow on the server running MOM. |
|
Updates the time when the last heartbeat was received from a computer. |
|
Initiates an immediate scan of a specific computer by MOM. |
|
Initiates an immediate scan of all computers belonging to the Agent Manager on the server where this WMI object is stored. |
Properties
Name | Description |
---|---|
Gets the description for the computer. |
|
Gets or sets the DNS name for the computer. |
|
Gets the domain to which the computer belongs. |
|
Gets the GUID that identifies the computer. |
|
This property uses a deprecated data source. It should not be used when creating new applications. |
|
Checks whether the computer is functioning as a MOM Consolidator. |
|
Gets the last user to change the computer's properties. |
|
Gets the name of the computer. |
|
Gets the time when the computer was added to MOM. |
|
Gets the time when the computer was last contacted by the server running MOM. |
|
Gets the time when the computer's properties last changed. |
|
Gets the type of the computer. |
Requirements
Platforms: Requires Windows 2000 Server or later
Version: Requires MOM 2000 SP1 or later
See Also
MOM WMI Classes | MSFT_ComputerGroup Class | MSFT_ComputerToComputerGroup Class | Working with Non-Windows Systems