Share via


MSFT_Computer Class

Note 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

InsertEventsIntoWorkflow

Inserts one or more events into the workflow on the server running MOM.

InsertStatisticsIntoWorkflow

Inserts performance data into the workflow on the server running MOM.

UpdateContactTime

Updates the time when the last heartbeat was received from a computer.

ScanManagedComputer

Initiates an immediate scan of a specific computer by MOM.

ScanAllManagedComputers

Initiates an immediate scan of all computers belonging to the Agent Manager on the server where this WMI object is stored.

Properties

Name Description

Description

Gets the description for the computer.

DNSName

Gets or sets the DNS name for the computer.

Domain

Gets the domain to which the computer belongs.

GUID

Gets the GUID that identifies the computer.

IsAgent

This property uses a deprecated data source. It should not be used when creating new applications.

IsConsolidator

Checks whether the computer is functioning as a MOM Consolidator.

LastModifiedBy

Gets the last user to change the computer's properties.

Name

Gets the name of the computer.

TimeAdded

Gets the time when the computer was added to MOM.

TimeLastContacted

Gets the time when the computer was last contacted by the server running MOM.

TimeLastModified

Gets the time when the computer's properties last changed.

Type

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