Skip to content

Instantly share code, notes, and snippets.

@davefunkel
Created April 21, 2016 05:47
Show Gist options
  • Save davefunkel/7b10476b3cd4c2ef87a2dd9665c0b1e1 to your computer and use it in GitHub Desktop.
Save davefunkel/7b10476b3cd4c2ef87a2dd9665c0b1e1 to your computer and use it in GitHub Desktop.
$username = "better.admin@acme.com.au"
$pwdTxt = Get-Content "C:\temp\ExportedPassword.txt"
$securePwd = $pwdTxt | ConvertTo-SecureString
$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