- Encrypts password to the RDP file format (the password will be 1329 bytes length) ant print to the output
- Creates RDP file with encrypted password and basic rdp info (username, domainname, hostname) This file could be used to automatically connect to the Windows OS. The file should be generated at the RDP client side, e.g. to connecto from host A to the host B, the file must be generated at the A side.
- Opens connection to the RDP host (creates temporary file and executes
mstsc.exe {filename}
) - Updates .rdp with the encrypted password line, e.g. adds new line
password 51:b:{encrypted password}
* Usage:
* To generate rdp password:
* java -jar rdp-helper-*.jar /password $PASSWORD
* To create .rdp file:
* java -jar rdp-helper-*.jar /file $PASSWORD $USERNAME $HOST $FILENAME $DOMAIN
* To start rdp session:
* java -jar rdp-helper-*.jar /open $PASSWORD $USERNAME $HOST $DOMAIN
* To start rdp session and skip warning windows (untrusted publisher)
* java -jar rdp-helper-* /force $PASSWORD $USERNAME $HOST $DOMAIN
* To close rdp session
* java -jar rdp-helper-*.jar /logoff $USERNAME
* To check if userName connected (if true will return process ID > 0)
* java -jar rdp-helper-*.jar /isconnected $USERNAME
* To add password line to the existing file:
* java -jar rdp-helper-* /update $PASSWORD $FILENAME
* To configure Windows OS autologon:
* java -jar rdp-helper-*.jar /winlogon $USERNAME $PASSWORD $DOMAIN
$DOMAIN is optional
mvn clean compile assembly:single
or
mvn install