Citrix Virtual Apps and Desktops SDK

Test-BrokerAccessPolicyRuleNameAvailable

Determine whether the proposed AccessPolicyRule Name is available for use.

Syntax

Test-BrokerAccessPolicyRuleNameAvailable
    [-Name] <String[]>
    [<CitrixCommonParameters>]
    [<CommonParameters>]
<!--NeedCopy-->

Description

This cmdlet checks whether proposed AccessPolicyRule Name is available for use. It returns a record for each Name indicating the availability of that Name, with $true indicating that the Name is unused and available for use, or $false if it is not available.

Examples

EXAMPLE 1

Checks whether the Name “Test1” is available.

Test-BrokerAccessPolicyRuleNameAvailable -Name Test1
<!--NeedCopy-->

EXAMPLE 2

Checks whether each of the specified names is available.

Test-BrokerAccessPolicyRuleNameAvailable @("Test1","Test2","Test3")
<!--NeedCopy-->

Parameters

-Name

The AccessPolicyRule Name to be tested.

Type: String[]
Position: 1
Default value: None
Required: True
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Length range: 1 to 64
Disallowed characters: /;:#.*?=<>\|[]()"'`\ and all ASCII control characters

CitrixCommonParameters

This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.

CommonParameters

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

Inputs

String

You can pipe a string that contains the Name to test.

Outputs

Citrix.Broker.Admin.SDK.NameAvailability

The cmdlet returns a result for each Name specified. An availability of “True” indicates the Name is available for use, and “False” if it is not available.

Test-BrokerAccessPolicyRuleNameAvailable