Created
September 19, 2017 15:31
-
-
Save McShauno/325bf041787a100aad6cbf40ff9d8169 to your computer and use it in GitHub Desktop.
PS Module for encrypting credentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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