Кому-нибудь надо?
Утилита (обёртка над mstsc) написана с включением GPL-ного кода, поэтому код я скорей всего открою :)
akartashov@sl14 ~ $ rdesktop
rdclient: A Remote Desktop Protocol client.
version 0.01
Usage: rdclient [options] server[:port]
-u: user name
-d: domain
-s: shell
-c: working directory
-p: password
-g: desktop geometry (WxH)
-w: window geometry (WxH[+startx[+starty]])
-f: full-screen mode
-l: authentication level (noauth|warn|stop)
-l noauth - do not attempt authentication
-l warn - warn if authentication fails
-l stop - do not connect if authentication fails
-a: connection colour depth
-z: enable rdp compression
-P: use persistent bitmap caching
!not implemented -r: enable specified device redirection (this flag can be repeated)
-r comports - enable redirection of comports
-r disk:Z - enable redirection of disk Z:
-r printers - enable printer redirection
-r sound:[local|remote] - enable sound redirection
-r clipboard - enable clipboard redirection
-r scards - enable smartcards redirection
-0: attach to console