reggiep Posted February 3, 2012 Posted February 3, 2012 We currently have a script that enables exam users and another to disable them. Currently we run it on request from the teacher. We are trying to figure out a way that we could pass this to the teacher to do. The teacher doesn't have rights to run the vbs that attaches via LDAP to enable or disable the ou of users. Is there a way we could run a batch file at log in for that user that would call the vbs with the correct privileges or another method maybe?
Guest TheLibrarian Posted February 3, 2012 Posted February 3, 2012 Active Directory Users and Computer, Delegate Control wizard. After giving the appropriate rights have been delegates I'd set up a simple command shell script using dsquery and dsmod to list the accounts and enable / disable them.
themightymrp Posted February 3, 2012 Posted February 3, 2012 If you delegate control to staff on the OU to allow them the ability to enable/disable accounts, surely your script would then work when logged on as a teacher? 1
reggiep Posted February 3, 2012 Author Posted February 3, 2012 Thanks guys. I can't believe how complicated I was trying to make that! All working now.
Guest TheLibrarian Posted February 3, 2012 Posted February 3, 2012 You were too close to the issue to see the easy solution. I was caught out in the same way here when I was looking at WMI filtering some GPO's to differentiate between Windows 7 with and without APP-V.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now