Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Automatically connect to console in Remote Desktop Apps

When using Remote Desktop Client for Mac to connect to a Windows Server 2003 machine, you can hold down the Command key while pressing Connect to connect to the server's console session.

If you want to save your connection settings to a file, however, there is no option in the GUI to automatically use the console session. To do this, you will need to open up the saved connection file in your favorite text editor, and add the following line:

connect to console:i:1
The next time you load the connection file, it will automatically connect to the console session!
    •    
  • Currently 2.17 / 5
  You rated: 5 / 5 (6 votes cast)
 
[50,807 views]  

Automatically connect to console in Remote Desktop | 14 comments | Create New Account
Click here to return to the 'Automatically connect to console in Remote Desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically connect to console in Remote Desktop
Authored by: TheSpoonman on Mar 15, '05 12:54:21PM

Since we're talking RDC, and I just recently encountered the issue, how does one create a shortcut I can just double-click on to launch a connection to a server? I'd like to have one click access to my server at home.

---
Answering the age-old question: which is more painful, going to work or gouging your eye out with a spoon?
www.workorspoon.com



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: darkhalf on Mar 15, '05 02:50:14PM

Make an alias to the saved file and place wherever, double-click. Two clicks, not one, though.



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: Djehuti on Mar 15, '05 03:07:55PM

Ah, but put it in the Dock: one click. ;)



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: TheSpoonman on Mar 15, '05 03:16:33PM

Tried that, but when I double-click the file (or put it in the dock and single-click), it asks what file to open it with...

---
Answering the age-old question: which is more painful, going to work or gouging your eye out with a spoon?
www.workorspoon.com



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: darkhalf on Mar 15, '05 03:20:04PM

Drag the file to the Application first to make it aware of which one to launch it with. Then try the double/single/triple click dealie.



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: TheSpoonman on Mar 16, '05 09:14:09AM

Ah. Okay, I'll give that a try tonight, thanks.

---
Answering the age-old question: which is more painful, going to work or gouging your eye out with a spoon?
www.workorspoon.com



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: stevec on Mar 15, '05 02:58:43PM

click on the triangle next to OPTIONS in the RDC window. Set all your preferred settings and then click on SAVE AS...



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: darkhalf on Mar 15, '05 02:53:35PM

Freakin' awesome.



[ Reply to This | # ]
Go with rdesktop!
Authored by: toupsie on Mar 15, '05 09:12:25PM
I manage 80 or so Windows 2000 & Windows 2003 Servers with my Mac OS X box (much to my CIO's annoyance). Instead of using Microsoft RDC for Mac, I compiled rdesktop and launch sessions with shell scripts. All you need to do is make sure you have X11 and the X11 SDK installed. Then download the latest tarball from rdesktop.org. Here is an example script that will do all the dirty work for you.

#!/bin/sh
curl -O http://unc.dl.sourceforge.net/sourceforge/rdesktop/rdesktop-1.4.0.tar.gz
tar -zxvf rdesktop-1.4.0.tar.gz
cd rdesktop-1.4.0
./configure
make
sudo make install
Once you have rdesktop installed, then you can start writing little shell scripts to launch you RDC sessions from xterm or iTerm (my fav) after launching X11.

#!/bin/sh
/usr/local/bin/rdesktop -u username -d domain -a 16 -g 1024x768  server.ip.address.or.fqdn &
This little script will launch a RDC session at 1024x768 & 65k colors, put your login name and domain name in the MSGina winlogon. You can add "-p password" but since these are clear text shell scripts, you will create a security issue and Windows already is insecure enough without your Mac adding to the problem. If you want to connect to the console of the Windows Server or XP box, use "-0" in the command. The nice part of using scripts is that you can launch a bunch of sessions quickly -- faster than you can do in Windows RDC or Mac RDC!

The one big caveat with using rdesktop so far for me has been the clipboard. You can copy info from rdesktop to the mac but not back. I found a work around using gedit. You paste your mac text into gedit, highlight it, copy it again then you are able to paste it in your Windows session.

[ Reply to This | # ]

Automatically connect to console in Remote Desktop
Authored by: cliefan on May 26, '06 01:54:27PM

YES!!



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: Schwie on Jun 23, '06 07:54:29AM
Editing text files is too much work.

Instead, hold down the "Apple" key when you click "Connect" to enable a connection to the console for a one time use.

[ Reply to This | # ]

Automatically connect to console in Remote Desktop
Authored by: blinkintosser on Feb 20, '08 08:15:05PM

Since Microsoft's RDC 2.0 changed file formats (to plist/XML), the "connect to console:i:1" trick no longer works. I tried to guess what Microsoft might have renamed it, but no permutation of "connect" and "console" (as either integers or booleans) in the plist file met with any success. I was just about to run 'strings' on the application bundle when I decided to give the built-in help document a shot.

A search for "console" in the help doc revealed the simple solution: add "/console" (without quotes or spaces) after the server address to connect to the console session. Likewise, add it to the "ConnectionString" plist key in a saved RDP file for the same effect.



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: occamsmonkey on Jun 09, '08 02:11:14PM

It has been deprecated. A workaround is:

Open the preferences and click on the Applications button.

Add the following command:

tscon 0


This will immediately switch your session to the console on login. It's not perfect, but it works.



[ Reply to This | # ]
Automatically connect to console in Remote Desktop
Authored by: ksthomas on Apr 03, '11 04:44:54PM

In version 2.1 use SERVERNAME /console or IPADDRESS /console



[ Reply to This | # ]