Remote Desktop Hacks

I’m a heavy user of RDP (Remote Desktop, a.k.a. Terminal Services). I don’t remember how I ever got any work done before this technology existed. What follows are some miscellaneous tips.

To login to the console session on a Windows 2003 machine, start the Remote Desktop application from the command line with /console. You can also shadow a console session, so a person physically at the machine can interact with the session, too. See: How to Connect to and Shadow the Console Session with Windows Server 2003 Terminal Services. There is also an interesting but Rube Goldbergian trick I’ve never tried: How To Shadow a Remote Desktop Session in Windows XP Professional.

If you save connection settings in an .rdp file, you can add “connect to console:i:1” to make the console session preference permanent. This page extensively documents other .rdp file parameters.

When RDP misbehaves, qwinsta and rwinsta are available for remote management of sessions. Scott Forsyth has a nice write-up on how to use these tools: Managing Terminal Services Sessions Remotely.

When I connect to a Windows XP machine using RDP, the system replaces the “Turn Off Computer” button in the start menu with “Disconnect”. If I want to remotely power down the machine or reboot, I turn to the command line utility TSSHUTDN.

To connect to a Windows machine from a *nix machine I’ve used rdesktop successfully.

When paranoid, I change the default listening port for RDP on some of my machines.

Finally, some shortcut keys I commonly use:

ALT + PAGE UP replaces ALT+TAB to “tab” through running applications in the RDP window.
CTRL + ALT + + (numeric keypad plus) takes a screen print of the remote desktop (just like using PrintScrn on a local computer).
CTRL + ALT + - (numeric keypad minus) takes a screen print of the active window inside the RDP window (just like using ALT+PrintScrn on the desktop).

Any tips you want to share?

posted on Wednesday, April 19, 2006 12:42 AM by scott

Comments

Tuesday, April 18, 2006 10:50 PM by Phil Weber

# re: Remote Desktop Hacks

You may also turn off or reboot a remote XP machine by right-clicking on the taskbar and launching Task Manager, then using TaskMan's Shut Down menu.
Tuesday, April 18, 2006 11:33 PM by Jeff Atwood

# re: Remote Desktop Hacks

Very nice! I didn't know any of these shortcut keys.

However, I use task manager to shut down remote machines-- you'll notice it has the shutdown option in a RDP session.
Wednesday, April 19, 2006 12:17 AM by _cyclops_

# re: Remote Desktop Hacks

With rdesktop there is a configuration tool called 'grdesktop'.. it looks like the configuration window in Windows.

Rdesktop can be found at http://sourceforge.net/projects/rdesktop/ (link in the article is invalid)
and grdesktop at http://www.nongnu.org/grdesktop/
Wednesday, April 19, 2006 3:46 AM by Lars Wilhelmsen

# re: Remote Desktop Hacks

There's no need to run a command-line application to shut down/restart the application - the "Turn off Computer" item is accessibly by using the added "Windows Security" menu item under Start -> Settings...

Regards,

Lars Wilhelmsen
Wednesday, April 19, 2006 4:29 AM by Foreman_Bob

# re: Remote Desktop Hacks

CTRL + ALT + END will show your task manager.
Wednesday, April 19, 2006 4:40 AM by Andrew Robinson

# re: Remote Desktop Hacks

CTL + ALT + END to bring up the windows security screen, get to the task manager or change your password.
Wednesday, April 19, 2006 6:25 AM by Joseph Sak

# re: Remote Desktop Hacks

for rebooting/shutting down, you can alternatively use the run command on the remote machine:

shutdown -r -t 00 (reboot in 0 seconds)

shutdown -s -t 00 (shutdown in 0 seconds)

Wednesday, April 19, 2006 6:33 AM by Eric

# re: Remote Desktop Hacks

You don't need a command line utility to shut down Windows XP.

Start->Windows Security will bring up the familiar Ctrl-Alt-Del menu, which allows you to log off, shut down/reboot, etc. (Though I'm not 100% sure this works if Fast User Switching is enabled.)
Wednesday, April 19, 2006 6:51 AM by David M. Kean

# re: Remote Desktop Hacks

You can actually shutdown the computer from using the Windows Security button it puts on the Start menu.
Wednesday, April 19, 2006 7:21 AM by scott

# re: Remote Desktop Hacks

Thanks for the tips, guys. Obviously, I've been doing some things the hard way.

_cyclops_: thanks for finding that broken link. Late night posts always kill me.
Wednesday, April 19, 2006 7:41 AM by Joel

# re: Remote Desktop Hacks

I like to use Ctrl+Alt+Pause to toggle between fullscreen and windowed mode. That way I don't have to remember additional shortcut's for things like bring up the windows menu your capturing a screen since the fullscren mode captures those.
Wednesday, April 19, 2006 11:05 AM by Jason Row

# Remote Desktop Hacks by K. Scott Allen

Wednesday, April 19, 2006 1:23 PM by Michael Kizer

# re: Remote Desktop Hacks

There is a complete list of keyboard shortcuts for Terminal Services/Remote Desktop available here: http://support.microsoft.com/default.aspx?scid=kb;en-us;301583#EFABAAA

I use Alt+Home then R quite a bit to pop up the Run dialog.
Wednesday, April 19, 2006 1:33 PM by Joshua Flanagan

# re: Remote Desktop Hacks

The common shortcut keys are always a few mouse clicks away. Good to keep in mind when you don't have them all memorized.

Just change to windowed mode, click on the system menu (top left), The bottom option is "Help" - Select "Remote Desktop Connection Help".
Expand "Concepts" and click on "Using Terminal Services shortcut keys".
Wednesday, April 19, 2006 3:16 PM by Chris D

# re: Remote Desktop Hacks

If you download the server 2003 admin pack (free), you can create an MMC snapin for remote desktops. In a multi server environment it is invaluable. Basically looks like windows explorer, your list or remote desktops on the left, and you can just toggle between them.

Also it is configurable per connection whether you want to use a console connection or not.

http://www.microsoft.com/downloads/details.aspx?FamilyID=C16AE515-C8F4-47EF-A1E4-A8DCBACFF8E3&displaylang=en
Wednesday, April 19, 2006 3:35 PM by Scott.Other

# re: Remote Desktop Hacks

Drop to a command prompt (Start-Run- type “cmd” and hit enter) then type “shutdown -r -f.

-r restarts the computer
-f forces the issue. Otherwise the RDC client locks the workstation.

There are some other options too. Type “shutdown /?” to see them all.

I posted about this command a while back when I found out I didn't know how to send a ctrl-alt-del from the OS X RDC client. I believe it still works.
Thursday, April 20, 2006 3:47 AM by Jason Haley

# Interesting Finds

Friday, April 21, 2006 12:07 AM by Stuart Radcliffe

# Recent Links

Friday, April 21, 2006 11:11 AM by Dan Miser

# re: Remote Desktop Hacks

Here is another link-based RD entry that shows how to get RD working over SSH:

http://distribucon.com/blog/archive/2006/01/03/858.aspx
Sunday, April 23, 2006 9:04 AM by Mike

# re: Remote Desktop Hacks

While using RD, sometimes, there is an interval between the instance I type and the letters appearing on the remote screen..about 2 - 3 seconds..sometimes even more as if the remote machine has hung.
My remote machine has 1GB ram and it is 2+ Ghz P4, my machine at home is 512mb,P4 and I am on broadband through a wireless router - so I am not sure why this happens, my co-workers are not having this issue.
Any idea why this happens? is it my machine at home? or could it be that my internet gets disconnected at regular intervals?
Tuesday, April 25, 2006 4:52 PM by TristanK

# re: Remote Desktop Hacks

Mike - most often, it's the round-trip latency.

This can be caused by:
- congested Internet links between A and B
- busy server computer (eg, 100% CPU for extended periods)
- MTU stuff
- other stuff

If possible, try using PING at the same time to work out where the problem might be, or get a Netmon/Ethereal capture and look for any delays relating to RDP - TCP port 3389.

For a character to appear on the screen through RDP:
- You type the letter
- the RDP client at the local box sends the letter to the RDP server
- the RDP server does whatever it needs to do to update the screen in the application you're using
- the RDP server sends the changed pixels back to the client
- the client receives the changed pixels and updates the display

I'm something of a Wireless Luddite, so I think it's most likely someone's using your home microwave at the time you have the problem - eliminate that first. If you can't live without a microwave, try cabling the PC to the broadband connection temporarily, see if it gets any better.

I've seen RDP get into a state where it wouldn't update unless something else changed (eg, type a word and nothing, but click elsewhere and whop! the word appeared) - one such cause was fixed in XPSP2.
Friday, April 28, 2006 1:52 AM by kvbik

# re: Remote Desktop Hacks

Is there anybody who knows how to let remote desktop in xp listen only on specific ip address? In server2003 you can do it via tscc.msc, but there is none in xp.
Friday, April 28, 2006 7:33 AM by Sahil Malik

# re: Remote Desktop Hacks

Saturday, June 03, 2006 5:34 AM by Adrian Johnson

# re: Remote Desktop Hacks

I need to reboot my remote desktop machine from the command line on my own machine. How do I do that?
Wednesday, June 14, 2006 9:09 AM by Seth Lester Leary III

# re: Remote Desktop Hacks

All of these alternate shutdown methods are handy, but might be hard to remember when it comes time to use them.

Did you also know you can get the shutdown/restart options by simply deselecting all windows (click a blank space on the taskbar or desktop) and pressing Alt-F4?
Friday, August 04, 2006 8:32 AM by James

# re: Remote Desktop Hacks

I want to remote desktop someones compter at skool so how do i do this whithout them knowing????plz help would be fun!
Thursday, August 17, 2006 1:06 PM by LuAnn

# re: Remote Desktop Hacks HELP

I was using RDP from a XP Pro to my work XP Pro computer. Explorer appended with a request to send the information to Microsoft which I declined. The work XP Pro computer killed explorer, the start bar, all icons; basically got the classic blue screen. Is there a way to get to command line or anything to force a reboot?
Friday, August 18, 2006 9:21 AM by scott

# re: Remote Desktop Hacks

LuAnn:

If the only port on the work machine you can get to is the RDP port, then I don't think there is anything you can do remotely. You can try the ts shut down utility described here to try and reach the machine to force a reboot.
Tuesday, September 26, 2006 5:30 AM by Rob

# re: Remote Desktop Hacks

We have noted that RDP performs slower than expected when we are view a 400K PDF - It's more of the scrolling (page down) that is the problem. It's over a slow link and it appears that the network trace is showing that the client side session is looking for a ACK after every 4 packets - it seems that the third packet has the "pish bit" enabled. This is causing a 100ms - 200ms delay after each packet exchange. Some thoughts are - (1) can this be tweaked, can RDP use UDP instead of TCP. Has anyone else had simular issues?

Thanks
Monday, October 02, 2006 4:35 AM by Mark Anderson

# re: Remote Desktop Hacks

Thanks for all the tips these are great.

Two questions

1) is it possible to make the remote desktop session viewable to the user of the host computer like laplink. Ie when one of my employees connects to my computer can I keep an eye on the session?

2) If it is not possible to make a viewable session is there any way that the person that connects to my computer can disconnect so that I know that they are off my computer currently Windows says that it is locked and that the other person is using my computer even though they are off.
Wednesday, October 04, 2006 12:21 PM by david

# re: Remote Desktop Hacks

When using the Remote Desktops MMC snap-in does anyone know the keyboard shortcuts to switch between consoles or between the active console and the Console Root tree view?
Sunday, December 17, 2006 8:28 PM by Lew

# re: Remote Desktop Hacks

Hmmmm, i seem to hav locked miself out of mi RDP and forgot mi pass :/ any1 know how to retrieve if it possible?!
Cheers
Thursday, January 18, 2007 10:52 PM by GR8

# re: Remote Desktop Hacks

i'm using rdt to manage several remote systems, always in full screen mode.
does anybody know an easy way (e.g. keyboard shortcut) to switch between the different sessions quickly?

thnx.
Friday, November 09, 2007 9:25 PM by CK's Tech Blog

# Remote Desktop Tips

Remote Desktop Tips
Friday, November 09, 2007 9:25 PM by CK's Tech Blog

# Remote Desktop Tips

Remote Desktop Tips
Friday, November 09, 2007 9:27 PM by CK's Tech Blog

# Remote Desktop Tips

Remote Desktop Tips