Export (0) Print
Expand All
Expand Minimize

Get-MonitoringObjectPath

Get-MonitoringObjectPath

Gets path to a monitoring object.

Syntax

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

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




Detailed Description

Gets path to a monitoring object by monitoring object or identifier. Can also be used to convert between path styles by specifying the Path parameter and setting the DriveQualified parameter accordingly.

Parameters

-DriveQualified

Causes the cmdlet to return a drive-qualified path.


Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Id<Guid>

Specifies the GUID of a monitoring object. If used the cmdlet retrieves the corresponding path.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-MonitoringObject<MonitoringObject>

Specifies the monitoring object for which to retrieve the path. You can use Get-MonitoringObject to retrieve an object to supply as the value of this parameter.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies a path or paths to a monitoring object.


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-MonitoringObjectPath -detailed". For technical information, type "Get-Help Get-MonitoringObjectPath -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 object path of the object with the specified GUID.


C:\PS>get-monitoringobjectpath -id <GUID>

-------------- EXAMPLE 2 --------------

This command uses Get-MonitoringObjectPath to retrieve the object paths of all the monitoring objects returned by Get-MonitoringObject.


C:\PS>get-monitoringobject | get-monitoringobjectpath

Related topics

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