Gets a credential object based on a password.
Snap-In: Microsoft.PowerShell.Security
Syntax:
Get-Credential
[-Credential] <PSCredential> [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The get-credential Cmdlet establishes a credential object called a Ps credential by pairing a given username with a prompted password. That credential object can then be used for other operations involving security.