Citrix Daas SDK

Get-XDCredentials

Returns an XDCredentials object initialized from either credentials currently set as default in the shell, or saved and associated with the supplied name from the local credential store. Optionally, the cmdlet can list the names of all sets of credentials held in the store.

Syntax

Get-XDCredentials
   [-ProfileName <String>]
   [-ListProfiles]
   [<CommonParameters>]
<!--NeedCopy-->

Description

Returns an XDCredentials object initialized from either credentials currently set as default in the shell, or saved and associated with the supplied name from the local credential store. Optionally the cmdlet can list the names of all sets of credentials held in the store.

Examples

EXAMPLE 1

Returns the specified XDCredentials

Get-XDCredentials -ProfileName default
<!--NeedCopy-->

EXAMPLE 2

Returns a list of all stored XDCredentials

Get-XDCredentials -ListProfiles
<!--NeedCopy-->

Parameters

-ProfileName

The name associated with the credentials in the secure credentials store.

Type: String
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-ListProfiles

Lists the names of all credentials data sets saved in the secure credentials store.

Type: SwitchParameter
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

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

None

You cannot pipe input into this cmdlet.

Outputs

Citrix.SdkProxy.XDCredentials

Get-XDCredentials returns the specified XDCredentials object or a list of XDCredentials.

Get-XDCredentials