Download full document:

# Test-AdminAccess

Retrieves the scopes where the specified operation is permitted.

Syntax

Test-AdminAccess [-Operation] <String[]> [-Annotate] [-AdminAddress <String>] [<CommonParameters>]

Detailed Description

This cmdlet evaluates what rights the current user has, and from these determines the scopes where the specified operation is permitted.

Operations are the indivisible unit of functionality that each XenDesktop service can perform, and usually correspond to individual cmdlets.

If you specify the -Annotate option or specify multiple operations to check, the resulting object is annotated with the operation the result relates to.

Parameters

Name Description Required? Pipeline Input Default Value
Operation The operation to query. true true (ByValue)
Annotate Annotates each result with the operation it relates to. false false
AdminAddress Specifies the address of a XenDesktop controller the PowerShell snap-in will connect to. You can provide this as a host name or an IP address. false false Localhost. Once a value is provided by any cmdlet, this value becomes the default.

Input Type

Return Values

Citrix.DelegatedAdmin.Sdk.ScopeReference

The list of permissible scopes for the specified single operation.### PSObject The list of permissible scopes for each operation. This type of object is returned when the -Annotate option or multiple operations are specified.## Notes If the specified operation has unrestricted access a single object is returned representing the 'All' scope with a ScopeId of Guid.Empty (00000000-0000-0000-0000-000000000000).

Examples

EXAMPLE 1

C:\PS> Test-AdminAccess -Operation 'Broker:GetCatalog'

Description
-----------
Queries the scopes where 'Broker:GetCatalog' is permitted.

EXAMPLE 2

C:\PS> Test-AdminAccess -Operation 'Broker:GetCatalog','Broker:GetMachine'

Description
-----------
Queries the scopes where 'Broker:GetCatalog' or 'Broker:GetMachine' are permitted.