Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.34 KB

Get-PnPStoredCredential.md

File metadata and controls

65 lines (47 loc) · 1.34 KB
external help file applicable schema
SharePoint Server 2013, SharePoint Server 2016, SharePoint Online
2.0.0

Get-PnPStoredCredential

SYNOPSIS

Get a credential

SYNTAX

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

DESCRIPTION

Returns a stored credential from the Windows Credential Manager

EXAMPLES

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

PS:> Get-PnPStoredCredential -Name O365

Returns the credential associated with the specified identifier

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

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

PARAMETERS

-Name

The credential to retrieve.

Type: String
Parameter Sets: (All)

Required: True
Position: Named
Accept pipeline input: False

-Type

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

RELATED LINKS

SharePoint Developer Patterns and Practices