Monday, October 1, 2007

How to Disable Terminal Service Logins

If you’re ever working on a terminal server, you know that it can be annoying to have users login and disturb whatever you’re doing. Luckily, there’s a quick and easy way to stop them from logging in. Use the "change logon" command.


The syntax is:

change logon {/query /enable /disable}

To disable logons:

change logon /disable

Now when clients attempt to login, they will get the message “Remote logins are currently disabled”. And you can work in peace.


To enable logons:

change logon /enable

To check logon status:

change logon /query

If you find that you’ve disabled logons and you can’t get back in, you can login to the console (mstsc.exe /console) and change the setting. The restriction doesn’t affect console logins. Also, if the server reboots, the setting reverts back to being enabled.

Thanks to Chris Amaris for the tip!

Labels: ,


Subscribe to my feed   StumbleUpon Toolbar

Subscribe to The EXPTA {blog} by Email

2 Comments:

At October 1, 2007 12:07 PM , Anonymous Anonymous said...

I run into this issue a lot on the Windows XP based test machines that are shared by a few developers. Is there an equivalent command in XP?

 
At October 1, 2007 12:39 PM , Blogger Jeff said...

Terminal services is only supported on Windows server platforms. Are you asking how to prevent users from logging onto an XP workstation?

 

Post a Comment

Thank you for posting a comment! It is my hope that you find the information here useful. Let me know (and others) if this post helped you out or if you have a comment or further information.

Links to this post:

Create a Link

<< Home