Skip to content

Instantly share code, notes, and snippets.

@ldhertert
Created April 7, 2011 16:10
Show Gist options
  • Save ldhertert/908097 to your computer and use it in GitHub Desktop.
Save ldhertert/908097 to your computer and use it in GitHub Desktop.
$server = "127.0.0.1"
$username = "username"
$password = "password"
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force
$session_opts = New-PSSessionOption -SkipCNCheck -SkipCACheck
$creds = New-Object System.Management.Automation.PsCredential $username,$password
Enter-PSSession -ComputerName $server -SessionOption $session_opts -Credential $creds -UseSSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment