Windows 2000 Terminal Server restricted login hours

Posted on 2004-11-22
Last Modified: 2008-03-10
I need to be able to restrict a specific range of users from logging into this Terminal Server after 6PM.

I don't have Active Directory setup nor do I have any custom policies setup.

Is there a way that I can accomplish this restriction without a bunch of work?

Question by:j4piper
    LVL 11

    Expert Comment

    There is a way, although I dont know how would you be able to automate this. Here is what you do:

    - Go to the local user account you want to restrict access to, double click it and bring up its properties. Go to terminal services profile tab, there just check the checkbox that says "Allow login to terminal server" You have to do manually do this at 6 PM
    - When you want to renable that users access, you need to go back in user properties again and allow this checkmark again.

    The only thing is, I could not come up with a way to do this "checkbox change" from a command line. If we were to come up to, how to do this from a command line, then all you do is to make a batch file, schedule it to run using the normal Windows task scheduler at 6 PM and disable the account. Then another batch file would renable the "logging on to terminal server" functionality at a time of your choosing, and would run using windows task scheduler.

    LVL 11

    Accepted Solution

    Hello Joe,

    The following freeware utility might be of use to you. I have never tried or tested this utility myself, but according to it, you can change all the settings of a terminal server using comand line. If this is true, then all you need to do is put these commands in for the particular users or groups you want to disable access to the terminal server after 6 PM and schedule this job to run at 6 PM. Here is the utility url:

    Thanks and Good Luck!

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    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

    18 Experts available now in Live!

    Get 1:1 Help Now