Skip to content

Instantly share code, notes, and snippets.

@noahpeltier
Created August 12, 2018 15:06
Show Gist options
  • Save noahpeltier/954b1f374ebf89bfb11bc42f4395162a to your computer and use it in GitHub Desktop.
Save noahpeltier/954b1f374ebf89bfb11bc42f4395162a to your computer and use it in GitHub Desktop.
# This is a way to store your own credentials for backup or use in other scripts as a password manager
(Get-credential -Message "Please log in to continue").GetNetworkCredential() | Select UserName, Password | ft -AutoSize | out-host
#Out-Host can be anything really. The password is stored in plain text so you'd need to encript it as a pscredential or something for safety
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment