Export (0) Print
Expand All
Expand Minimize

Get-RelationshipClass

Get-RelationshipClass

Gets monitoring relationship classes.

Syntax

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

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

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

Parameter Set: FromRelationship
Get-RelationshipClass [-Relationship] <MonitoringRelationshipObject> [ <CommonParameters>]




Detailed Description

Gets monitoring relationship classes.

Parameters

-Id<Guid>

Specifies the GUID of the relationship class to retrieve.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-ManagementPack<ManagementPack>

Specifies the management pack for which to retrieve relationship classes.


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the relationship class to retrieve. The name of the class is case-sensitive.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies the path or paths to the management group connections from which to retrieve relationship classes. To enter more than one value for this parameter, separate them by using commas.


Aliases

none

Required?

false

Position?

5

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Relationship<MonitoringRelationshipObject>

Specifies a relationship object for which to retrieve the corresponding relationship class.


Aliases

none

Required?

true

Position?

4

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-RelationshipClass -detailed". For technical information, type "Get-Help Get-RelationshipClass -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 returns information about the relationship class named "System.WatchedBy". Note that the name of the class is case-sensitive.


C:\PS>get-relationshipclass -name "System.WatchedBy"

Related topics

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