Skip to content

Instantly share code, notes, and snippets.

@egmsystems
Forked from patmigliaccio/rdp.sh
Created July 18, 2021 22:27
Show Gist options
  • Save egmsystems/a1629f43920fd47606ba69dad1ae7ce0 to your computer and use it in GitHub Desktop.
Save egmsystems/a1629f43920fd47606ba69dad1ae7ce0 to your computer and use it in GitHub Desktop.
bash script to rdp into windows server with rdesktop
#!/bin/sh
# Reference: https://stackoverflow.com/a/38860/5199198
SERVER=SERVER_NAME
USER=USER_NAME
DOMAIN=DOMAIN_NAME
/usr/bin/rdesktop -g 1152x864 \
-a 16 \
-u $USER \
-d $DOMAIN \
-r sound:local \
$SERVER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment