Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Last active October 31, 2016 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivleshc/589ba296b22b49f0324c637d0fe56a8b to your computer and use it in GitHub Desktop.
Save nivleshc/589ba296b22b49f0324c637d0fe56a8b to your computer and use it in GitHub Desktop.
$adfspassword = Convertto-SecureString -String (Get-Content -Path $($localpath+"adfspass.key")) -key $key
$AdfsSvcCreds = New-Object System.Management.Automation.PSCredential($($DomainName+"\"+$AdfsSvcUsername), $adfspassword)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment