Last active
April 27, 2017 20:05
-
-
Save GeorgDangl/51f2cddb57f04e2a41a47bf3fd0392be to your computer and use it in GitHub Desktop.
Securely storing strings in PowerShell scripts and setting VPN Shared Secrets in Windows Server 2016
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
param([string]$password) | |
$encrypted = ConvertTo-SecureString $password -AsPlainText -Force | |
ConvertFrom-SecureString $encrypted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment