Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created November 4, 2018 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobalob/2585ad38d92b9c1ea3c956ab008b4c34 to your computer and use it in GitHub Desktop.
Save bobalob/2585ad38d92b9c1ea3c956ab008b4c34 to your computer and use it in GitHub Desktop.
# Store the password in a SecureString
$Credential = Get-Credential -Message "Enter the Azure Account Password" -UserName "Anything"
$EncodedPassword = $Credential.Password | ConvertFrom-SecureString
$EncodedPassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment