Created
April 21, 2016 05:47
-
-
Save davefunkel/7b10476b3cd4c2ef87a2dd9665c0b1e1 to your computer and use it in GitHub Desktop.
Revisions
-
davefunkel created this gist
Apr 21, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ $username = "[email protected]" $pwdTxt = Get-Content "C:\temp\ExportedPassword.txt" $securePwd = $pwdTxt | ConvertTo-SecureString $credObject = New-Object System.Management.Automation.PSCredential -ArgumentList $username, $securePwd