Created
April 21, 2016 06:49
-
-
Save davefunkel/432e650209d40291a9df5b2ff70637b7 to your computer and use it in GitHub Desktop.
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
$username = "reasonable.admin@acme.com.au" | |
$AESKey = Get-Content $AESKeyFilePath | |
$pwdTxt = Get-Content $SecurePwdFilePath | |
$securePwd = $pwdTxt | ConvertTo-SecureString -Key $AESKey | |
$credObject = New-Object System.Management.Automation.PSCredential -ArgumentList $username, $securePwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment