+ Post New Thread
Results 1 to 5 of 5
Windows Thread, Is it possible to have a script that a teacher runs that needs admin rights? in Technical; We currently have a script that enables exam users and another to disable them. Currently we run it on request ...
  1. #1
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29

    Is it possible to have a script that a teacher runs that needs admin rights?

    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?

  2. #2
    TheLibrarian
    Guest
    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.

  3. Thanks to TheLibrarian from:

    reggiep (3rd February 2012)

  4. #3
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,201
    Thank Post
    211
    Thanked 222 Times in 191 Posts
    Rep Power
    72
    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?

  5. Thanks to themightymrp from:

    reggiep (3rd February 2012)

  6. #4
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    Thanks guys.
    I can't believe how complicated I was trying to make that!

    All working now.

  7. #5
    TheLibrarian
    Guest
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Is it possible to uninstall CC3 from a workstation?
    By reggiep in forum Network and Classroom Management
    Replies: 10
    Last Post: 21st July 2008, 03:26 PM
  2. Is it Possible to Tell?
    By Paul_L in forum Hardware
    Replies: 17
    Last Post: 17th June 2008, 12:36 PM
  3. is it possible to rename an exchange server
    By timbo343 in forum Windows
    Replies: 15
    Last Post: 20th October 2007, 07:09 AM
  4. Is it possible to redirect a share?
    By ChrisH in forum Windows
    Replies: 6
    Last Post: 29th March 2006, 08:16 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •