When you first open the PowerShell console if you type Get-Credential the password dialog box will be displayed with a blank user name and password. However you can add either of the lines below to your PowerShell profile so that each time the console is opened the credentials provided will be used:
$Credentials = Get-Credential Domain\UserName
$Credentials = Get-Credential Local_UserName
Type $Credentials and the User name and the password (System.Security.SecureString) will be listed.
To see more information on the cmdlet type: Get-Help Get-Credential.
Tip: You can also use the –Detailed or –Full switch to get additional information such as examples for using the cmdlet.
Get-Help Get-Credential -Detailed.
Get-Help Get-Credential -Full.