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 ×

Help please! Scripts doin' me 'ead in!


Recommended Posts

Posted

I have the following two "scripts"

 

logontracker.vbs kindly shared by tosh74

 

This is specified in the domain group policy to record ALL logons (user config,windows setting scripts,logon)

 

and then

 

addprinter.cmd set in a classroom group policy to add printers according to classroom (user config,windows setting scripts, logon)

 

Both can be run manually when logged on as a user. If set to run automatically, the addprinter.cmd will not run unless I enable "allow user group policy loopback processing" in the classroom group policy.

 

However, when I do that, the logontracker throws an access denied error!

 

Any ideas gratefully received.

 

Tazz

Posted

If you set the vbs scrip to run as a logon on the users ou.

Then set the other one in its own policy on the computers ou with loopback you should be fine then. Dont put both scripts and loopback in an OU that contains both computers and users

  • Thanks 1
Posted
Merge the two scripts into one? You'd have to script it to detect the OU which the computer resides in, and assign printers according to that, but it should solve the problem.
Posted
If you set the vbs scrip to run as a logon on the users ou.

Then set the other one in its own policy on the computers ou with loopback you should be fine then. Dont put both scripts and loopback in an OU that contains both computers and users

 

Thank you so much - that seems to have sorted it out :)

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...