Welcome to MSDN Blogs Sign in | Join | Help

Misha Shneerson

VSTO internals and the little things about CLR, COM, Visual Studio and more ...
Enable Remote Desktop Connection through Windows Firewall Remotely

This article by John Howard is priceless. Windows XP SP2 configures the firewall settings so that remote desktop is unacessible. My wife installed a fresh OS today and wanted to TS (which is a slang from Remote Desktop) from home but instead she had to drive to work and phisically be at the computer console to enable the port. Now, thanks to John, we are through with that little inconvenience.

Summary: get psexec utility from SysInternals. Then psexec <yourmachine> cmd, followed by netsh firewall set portopening protocol=TCP port=3389 name=TS mode=ENABLE profile=DOMAIN

Posted: Wednesday, August 02, 2006 9:44 PM by Misha Shneerson

Comments

TravisOwens said:

I keep psexec in my toolbox of goodies but it never crossed my mind to use it to admin the XP firewall, great tip!
# August 3, 2006 11:45 AM

Christopher Steen said:


 TRULY
 Understanding ViewState [Via: InfinitiesLoop ]
 How-Do-I
 Video - Using the Atlas...
# August 3, 2006 11:30 PM

Sharif M said:

great post. solved a problem I was having with a client's pc which I joined to a domain remotely then lost contact due to windows firewall ignoring previously set exceptions.

Thanks
Sharif
# August 8, 2006 3:21 PM

Misha Pilip said:

Misha hello,

 I  am 'trahayus' with my Windows XP tryting to enable remote connection. After searching for "enable remote desktop connection"  I've got to your blog.  So, when I go to System->Remote I see only "Remote Assistence" part without "Remote Connection".

 What should be my next step ? Sincerely Misha. 408-3496256
# October 1, 2006 1:14 AM

irfan said:

i need help about Remote Connection

# February 1, 2007 2:42 PM

miztiik said:

i would like to use psexec for remote login into remote servers using uid and pwd can you help me

# May 9, 2007 4:31 AM

DT said:

After changing the firewall settings (as described above), is it possible to set "Allow users to connect remotely to this computer" with psexec or any other means?

# January 22, 2008 7:32 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker