Export (0) Print
Expand All
Expand Minimize

Get-MonitorHierarchy

Get-MonitorHierarchy

Retrieves the hierarchy of monitors for a particular monitoring object.

Syntax

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

Parameter Set: FromMonitoringClass
Get-MonitorHierarchy [-MonitoringClass] <MonitoringClass> [[-Recurse]] [ <CommonParameters>]




Detailed Description

Retrieves the hierarchy of monitors for a particular monitoring object.

Parameters

-MonitoringClass<MonitoringClass>

Specifies the monitoring class for which to retrieve the monitor hierarchy.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-MonitoringObject<MonitoringObject>

Specifies the monitoring object for which to retrieve the monitoring hierarchy.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Recurse

Specifies whether to recurse the monitor hierarchy.


Aliases

none

Required?

false

Position?

3

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-MonitoringHierarchy -detailed". For technical information, type "Get-Help Get-MonitoringHierarchy -full".
    When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

Examples

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

This example displays the monitor hierarchy for the computer class "Microsoft.Windows.Computer" and all machines with a principal name of "dc.contoso.com".


C:\PS>$computerClass = Get-MonitoringClass -name:"Microsoft.Windows.Computer"$computer = Get-MonitoringObject -monitoringClass:$computerClass -criteria:"PrincipalName='dc.contoso.com'"Get-MonitorHierarchy -MonitoringObject:$computer -Recurse | ft DisplayName, Status, Enabled, HasNonCategoryOverride -autosize

Related topics

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