Skip to content

Instantly share code, notes, and snippets.

@kan6004
Created January 5, 2015 08:00
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 kan6004/589f9e289de73938da2f to your computer and use it in GitHub Desktop.
Save kan6004/589f9e289de73938da2f to your computer and use it in GitHub Desktop.
2015.1.5 samplecode1
$server = "<server FQDN or IP>"
$user = "<domain name>\<user name>"
$pass = "<user password>"
$s = New-PSSession -ComputerName $server -Credential (New-Object System.Management.Automation.PsCredential($user, (ConvertTo-SecureString $pass -AsPlainText -Force)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment