Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A one line command to get a full (username and password) credential object without bringing them in from variables.
$Credential = New-Object System.Management.Automation.PSCredential 'username',(convertto-securestring 'password' -asplaintext -force)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.