Skip to content

Instantly share code, notes, and snippets.

@McShauno
Created September 19, 2017 15:31
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 McShauno/325bf041787a100aad6cbf40ff9d8169 to your computer and use it in GitHub Desktop.
Save McShauno/325bf041787a100aad6cbf40ff9d8169 to your computer and use it in GitHub Desktop.
PS Module for encrypting credentials
function Store-Credential($fileName)
{
$CredentialToStore = Get-Credential
$CredentialToStore.Password | ConvertFrom-SecureString | Set-Content $fileName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment