Exporting and Importing Credentials in PowerShell - Power Tips - Power Tips - IDERA Community
Credential objects contain a username and a password. You can create them using Get-Credential, and then supply this object to any cmdlet that has the -Credential...