Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

script to enable disable users in ou based on time


Recommended Posts

Posted

Having had a few issues were we have forgot to enable users accounts for controlled assessments, i am looking for a script solution.

 

I have created a few vb scripts that enable and ones that disable users in a certain OUs.

At the moment i am having to use the windows scheduler to set when the different scripts run. Just done this for tomorrow and it required setting up 6 ST's to enable & then disable the 3 groups. Not good when rsi interferes.

 

I could do with a script that will run continously in the background on our 2003 ad server and monitor the system clock and run one of the vbscript files that enable/disable the accounts at the required times.

Posted

can you post more details regarding the timing as you say you want said script to enable or disable at set times, ie is it every 30 mins or at a set time every day or what exactly ie

 

want script to run at 10:30am to disable all accounts and then at 11:30am the other script has to run to re enable all said accounts ???

Posted (edited)

ok the timings, on wednesday we have history group a users (who are in an ou called histoptionA) that will do there CA from 8.55 to 10.10am. Is it possible for a script to have a date and times listed, the script then polls this info, compares it against the actual system time and if they match, it will call on a vbscript to enable the accounts at 8.55. Then further in the script will be an entry for 10.11.2010 10.10 when system clock reaches this, the script will call a vb script that disables these accounts?

 

hth

Edited by projector1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...