Table of Contents

Get-PnPStoredCredential

SYNOPSIS

Get a credential

SYNTAX

Get-PnPStoredCredential -Name <String> 

DESCRIPTION

Returns a stored credential. If a default vault has been registered through Microsoft.PowerShell.SecretManagement, the credential is read from that vault. If not, it is read from the credential store native to the operating system: the Windows Credential Manager on Windows, the Keychain on macOS and the Secret Service on Linux. Reading a credential from the Linux Secret Service requires a provider such as GNOME Keyring or KWallet to be installed and unlocked. See Credential Management for the details.

EXAMPLES

EXAMPLE 1

Get-PnPStoredCredential -Name O365

Returns the credential associated with the specified identifier

PARAMETERS

-Name

The credential to retrieve.

Type: String
Parameter Sets: (All)

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

Microsoft 365 Patterns and Practices