Export (0) Print
Expand All
Expand Minimize

Get-MonitoringClass

Get-MonitoringClass

Gets monitoring classes.

Syntax

Parameter Set: FromMonitoringObjectProviderPath
Get-MonitoringClass [[-Path] <String[]> ] [ <CommonParameters>]

Parameter Set: FromId
Get-MonitoringClass [[-Id] <Guid> ] [[-Path] <String[]> ] [ <CommonParameters>]

Parameter Set: FromManagementPack
Get-MonitoringClass [[-ManagementPack] <ManagementPack> ] [ <CommonParameters>]

Parameter Set: FromMonitoringObject
Get-MonitoringClass [-MonitoringObject] <MonitoringObject> [ <CommonParameters>]

Parameter Set: FromName
Get-MonitoringClass [[-Name] <String> ] [[-Path] <String[]> ] [ <CommonParameters>]




Detailed Description

Gets all monitoring classes if no parameters are specified. Can also get a monitoring class by identifier or by name. Enables you to get the monitoring class of a given monitoring object or all monitoring classes associated with a specified management pack.

Parameters

-Id<Guid>

Specifies the GUID of the monitoring class to retrieve.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-ManagementPack<ManagementPack>

Specifies the management pack for which to retrieve associated monitoring classes.


Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-MonitoringObject<MonitoringObject>

Specifies the monitoring object for which to retrieve the associated monitoring class.


Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the monitoring class to retrieve.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies the path or paths of monitoring objects for which to retrieve corresponding monitoring classes. To enter more than one path, separate them by using commas.


Aliases

none

Required?

false

Position?

5

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Notes

  • For more information, type "Get-Help Get-MonitoringClass -detailed". For technical information, type "Get-Help Get-MonitoringClass -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

-------------- EXAMPLE 1 --------------

This command gets the monitoring class named "Microsoft.Windows.Computer".


C:\PS>get-monitoringclass -name "Microsoft.Windows.Computer"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft