Securely Storing Multiple Credentials
#note: this only works when running from the machine the creds were created on, by the user who created them
#create a file to store encypted credentials
$Path = "$home\Desktop\sec_local.xml"
#now enter your user creds
[PSCustomObject]@{
User1 = Get-Credential -Message User1
User2 = Get-Credential -Message User2
} | Export-Clixml -Path $Path
#now user/passwords can always be referenced from this file securely
$sec_creds = Import-Clixml -Path $Path
$user1 = $sec_creds.User1
$user2 = $sec_creds.User2