Skip to content

Instantly share code, notes, and snippets.

@juanesech
Created March 17, 2020 18:42
Show Gist options
  • Select an option

  • Save juanesech/7497774af8c2df3ca94be0a8dfa12b19 to your computer and use it in GitHub Desktop.

Select an option

Save juanesech/7497774af8c2df3ca94be0a8dfa12b19 to your computer and use it in GitHub Desktop.
param ($server, $u = "Student", $p = "Pa55w.rd1234")
echo "Connecting to $Server"
$User=$u
$Password=$p
cmdkey /generic:TERMSRV/$server /user:$User /pass:$Password
mstsc /v:$server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment