Get-PnPStoredCredential

Get a credential

Syntax

Get-PnPStoredCredential
   -Name <String>
                          [-Type <CredentialType>]

Description

Returns a stored credential from the Windows Credential Manager

Examples

------------------EXAMPLE 1------------------

Get-PnPStoredCredential -Name O365

Returns the credential associated with the specified identifier

------------------EXAMPLE 2------------------

Get-PnPStoredCredential -Name testEnvironment -Type OnPrem

Gets the credential associated with the specified identifier from the credential manager and then will return a credential that can be used for on-premises authentication

Required Parameters

-Name

The credential to retrieve.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Type

The object type of the credential to return from the Credential Manager. Possible valus are 'O365', 'OnPrem' or 'PSCredential'

Type:CredentialType
Position:Named
Accept pipeline input:False
Accept wildcard characters:False