Skip to content

Instantly share code, notes, and snippets.

@davefunkel
Created April 21, 2016 05:47
Show Gist options
  • Select an option

  • Save davefunkel/7b10476b3cd4c2ef87a2dd9665c0b1e1 to your computer and use it in GitHub Desktop.

Select an option

Save davefunkel/7b10476b3cd4c2ef87a2dd9665c0b1e1 to your computer and use it in GitHub Desktop.

Revisions

  1. davefunkel created this gist Apr 21, 2016.
    4 changes: 4 additions & 0 deletions ImportPassword.ps1
    Original 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