+ Post New Thread
Results 1 to 5 of 5
Scripts Thread, Help please! Scripts doin' me 'ead in! in Coding and Web Development; I have the following two "scripts" logontracker.vbs kindly shared by tosh74 This is specified in the domain group policy to ...
  1. #1
    tazz's Avatar
    Join Date
    May 2007
    Location
    Notts
    Posts
    224
    Thank Post
    48
    Thanked 16 Times in 9 Posts
    Rep Power
    17

    Help please! Scripts doin' me 'ead in!

    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

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,950
    Thank Post
    886
    Thanked 1,698 Times in 1,476 Posts
    Blog Entries
    12
    Rep Power
    447
    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

  3. Thanks to FN-GM from:

    tazz (19th August 2009)

  4. #3

    Join Date
    Mar 2008
    Location
    Surrey
    Posts
    2,168
    Thank Post
    98
    Thanked 319 Times in 261 Posts
    Blog Entries
    4
    Rep Power
    113
    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.

  5. #4
    tazz's Avatar
    Join Date
    May 2007
    Location
    Notts
    Posts
    224
    Thank Post
    48
    Thanked 16 Times in 9 Posts
    Rep Power
    17
    Quote Originally Posted by FN-GM View Post
    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

  6. #5

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,950
    Thank Post
    886
    Thanked 1,698 Times in 1,476 Posts
    Blog Entries
    12
    Rep Power
    447
    Good

    If you do it at top level with loopback the scripts will also run twice as well.

    Z

SHARE:
+ Post New Thread

Similar Threads

  1. Logon scripts
    By cookie_monster in forum Windows 7
    Replies: 6
    Last Post: 6th May 2009, 09:07 PM
  2. Help running scripts within scripts
    By SimpleSi in forum *nix
    Replies: 7
    Last Post: 7th March 2008, 09:23 AM
  3. Logon scripts
    By mmoseley in forum Windows
    Replies: 1
    Last Post: 23rd December 2007, 11:46 PM
  4. Printer Scripts
    By faza in forum Wireless Networks
    Replies: 3
    Last Post: 27th July 2007, 05:15 PM
  5. Scripts, Scripts, Scripts
    By wesleyw in forum Windows
    Replies: 18
    Last Post: 17th July 2006, 02:36 PM

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
  •