external help file | applicable | schema |
---|---|---|
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online |
2.0.0 |
Get a credential
Get-PnPStoredCredential -Name <String>
[-Type <CredentialType>]
Returns a stored credential from the Windows Credential Manager
PS:> Get-PnPStoredCredential -Name O365
Returns the credential associated with the specified identifier
PS:> 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
The credential to retrieve.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
The object type of the credential to return from the Credential Manager. Possible valus are 'O365', 'OnPrem' or 'PSCredential'
Type: CredentialType
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False