Skip to content

Instantly share code, notes, and snippets.

@yaplex
Created June 19, 2017 20:13
Show Gist options
  • Save yaplex/715d112a912346a8ccf9768568fb601c to your computer and use it in GitHub Desktop.
Save yaplex/715d112a912346a8ccf9768568fb601c to your computer and use it in GitHub Desktop.
$secpasswd = ConvertTo-SecureString "MyPassword" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential (".\MYUser", $secpasswd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment