Solved

How to disable RDP console on Server 2003 R2

Posted on 2010-08-17
19
1,796 Views
Last Modified: 2013-11-21
I know this may seem like a simple question, but I was curious if there was a way to disable the ability to RDP into the Console of a Win Server 2003 R2 box?  I want to keep all other sessions, just remove the ability to use the console with RDP.

Things I have tried:

Using a WMI script:
Ex:
WMIC RDAccount where "TerminalName='console' and AccountName like '%administrators%'" call delete

I have also tried changing the following reg keys:

HKLM \SYSTEM \CurrentControlSet \Control \Terminal Server \WinStation \Console

fEnableWinStation from 1 to 0
fLogonDisabled from 0 to 1

Any suggestions?

Thanks in advance...
0
Comment
Question by:nakoz69
  • 13
  • 6
19 Comments
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
0
 
LVL 1

Author Comment

by:nakoz69
Comment Utility
Thanks for the reply, but that link is just information on how to enable/disable RDP with the possiblity of using Group Policies.  

My question is referring to "How to disable the Console in RDP"  not RDP itself.
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
Please explain disable the console in RDP.  I don't follow.
The console, is physical access to the computer's keyboard, mouse, and video.
RDP is remote access.
Please elaborate if you would.
0
 
LVL 1

Author Comment

by:nakoz69
Comment Utility
When using RDP depending on which version you have installed, you can use the /console or /admin option to have direct access to the windows console on the box.  I want to know how I can disable this ability without having to disable RDP all together.  
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
Your WMI Script looks to be the correct method.
Could it be that the user your trying to connect RDP console is not in the Administrators group?
0
 
LVL 1

Author Comment

by:nakoz69
Comment Utility
The account I am testing with is the "Administrator" account that is currently the only user in the "Administrators" group.  

I am testing on a clean box with only the local admin account.  I want to make sure I eliminate any variables that could cause it not to work.

I ran the script above and it said it executed correctly, but after a few reboots, the ability to remote to the console is still there.

Any other suggestions?
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
Hang in there.   Allow me to test it on mine.
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
after connecting RDP, go into the Terminal Services Manager and let me know what is under "Session" for your administrator.  Be sure that your console is logged off.
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
Should be 0
0
Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

 
LVL 1

Author Comment

by:nakoz69
Comment Utility
It says ID is "0"
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
In terminal services configuration, do you ahve "Restrict each user to one session" as YES?
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
typo:  have
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
OK.  After testing this on mine, I found that I am still able to RDP to 0.
Can't find a solution out there anywhere for this.
Let me put this to you now that I have failed.  LOL
Why are you trying to disable administrator access to the console session?
0
 
LVL 10

Accepted Solution

by:
mcrossland earned 500 total points
Comment Utility
One more option.
http://www.raseley.com/2009/04/21/deny-logoff-of-an-administrator-logged-in-to-the-console-session/
Keep the administrator logged in and deny logoff of the console.   Lock the console instead of logging off.
0
 
LVL 1

Author Comment

by:nakoz69
Comment Utility
Ok I think I finally got it figured out.

Start>Run>gpedit.msc

Then goto Administrative Templates>Windows Components>Terminal Services and enable the setting “Deny Log off of an administrator logged into the console session”

Close gpedit.msc
And from the command line run “gpupdate.exe /force”

I tested this on my 2k3 R2 box and when you try to login to the console from RDP it tells you, you must have admin privileges, and then takes you back to the login screen.

0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
Perfect!   So the deny logoff method does work.  Glad to hear it.
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
Was hoping that you would notice that I posted that before you mentioned the fix.  ;)
0
 
LVL 1

Author Comment

by:nakoz69
Comment Utility
Thanks for taking the time to help mcrossland!  Points awarded!
0
 
LVL 10

Expert Comment

by:mcrossland
Comment Utility
You are very welcome.   Have a great day!
MC
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Learn about cloud computing and its benefits for small business owners.
Know what services you can and cannot, should and should not combine on your server.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now