Get-UserRole

Get-UserRole

Gets user roles.

Syntax

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

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

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

Detailed Description

Gets user roles.

Parameters

-Id<Guid>

Specifies the GUID of the user role to retrieve.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-MonitoringObject<MonitoringObject>

Specifies the user role to retrieve in the form of a monitoring object.

Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Path<String[]>

Specifies the path or paths to the management groups from which to retrieve user roles. To enter multiple values, separate them by using commas.

Aliases

none

Required?

false

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-UserRole -detailed". For technical information, type "Get-Help Get-UserRole -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 the display name of all user roles.

C:\PS>get-userrole | select-object displayname

Unkown