Returns a stored credential from the Windows Credential Manager
Get-PnPStoredCredential -Name <String>
[-Type <CredentialType>]
Parameter | Type | Required | Description |
---|---|---|---|
Name | String | True | The credential to retrieve. |
Type | CredentialType | False | The object type of the credential to return from the Credential Manager. Possible valus are 'O365', 'OnPrem' or 'PSCredential' |
PS:> Get-SPOnlineStoredCredential -Name O365
Returns the credential associated with the specified identifier
PS:> Get-SPOnlineStoredCredential -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