< Back

Get-VaultCredential

Sat Jan 18, 2020 8:01 pm

NAME Get-VaultCredential



SYNOPSIS

Get the credential stored in the PasswordVault for a given resource.





SYNTAX

Get-VaultCredential [[-Resource] <String>] [[-User] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Resource <String>

The resource to fetch from the PasswordVault



Required? false

Position? 2

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-User <String>

The user connected to the resource



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSCredential





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



PS C:\\>Get-Credential https://msdn.microsoft.com



Description

-----------

Gets the credemtials for all users stored in the PasswordVault for the resource https://msdn.microsoft.com









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



PS C:\\>Get-Credential -User john.doe



Description

-----------

Gets the credentials for all the resources from the PasswordVault used by john.doe









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-Credential -Resource https://msdn.microsoft.com -User CONTOSO\\john.doe



Description

-----------

Gets the credentials for the user john.doe on domain CONTOSO for the resource https://msdn.microsoft.com











RELATED LINKS