For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-DSAdministrativeRole

Synopsis

Get available administrative roles.

Syntax

__AllParameterSets

Get-DSAdministrativeRole [-RoleID <guid>] [-ScopeType <AdministrativeRoleAssignmentScopeType>]
 [<CommonParameters>]

Description

Get the administrative roles available on the server, optionally filtered by role ID or supported scope type.

Examples

Example 1

PS C:\> Get-DSAdministrativeRole

Get every administrative role available on the server.

Example 2

PS C:\> Get-DSAdministrativeRole -ScopeType Repository | Where-Object Name -EQ 'Vault Owner'

Resolve the 'Vault Owner' role to its ID for use with Add-DSRoleAssignment.

Parameters

-RoleID

Return only the role matching this ID.

-ScopeType

Return only roles that support this scope type.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSAdministrativeRole

Notes

For more information, type "Get-Help Get-DSAdministrativeRole -detailed". For technical information, type "Get-Help Get-DSAdministrativeRole -full".

Last updated

Was this helpful?