Disabling User Accounts with a scheduled time?

Posted on 2006-05-22
Medium Priority
Last Modified: 2010-04-18
Seems to me this was available in Win2K Server, but not Server 2003.

We have (2) Win2003 Servers (WORKGROUP SERVERS, not DOMAIN) and occasionally need to disable accounts.  This is no problem through the User Manager, but wasn't there a timetable that allowed you to schedule times Users could be accessing the network?  Or was this under SHARES?  I need to do a lock-out of an account soon, but it needs to happen as the clock strikes 12pm in a few weeks.

Anyone have an idea?

Thank you,
Question by:baamold
LVL 48

Accepted Solution

Jay_Jay70 earned 252 total points
ID: 16739459
Hi baamold,


create that in a VBS script and set as a scheduled task :)
LVL 78

Assisted Solution

by:Rob Williams
Rob Williams earned 248 total points
ID: 16739475
You can change the user's logon hours in the user's profile.
In active directory Users and computers on the User's profile, under account, click on Logon Hours. This will let you set the hours the user may or may not logon. It will only allow control by the days of the week and time, but that would allow you to set the blocking rules up to 7 days ahead. Then you would have to manually disable the account before the cycle looped again.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

621 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