+ Post New Thread
Results 1 to 10 of 10
Windows Server 2000/2003 Thread, GPO problem with scripts in Technical; I have a printer script (vbs) that 100% works when clicked via staff or admins but when I add the ...
  1. #1

    Join Date
    May 2008
    Location
    Manchester
    Posts
    55
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    14

    GPO problem with scripts

    I have a printer script (vbs) that 100% works when clicked via staff or admins but when I add the script to lets say 6thFormGPO under user config -> windows settings -> scripts -> logon it doesnt run, nor does anythig else I put in it ie .bat . Is this where I should put scripts or can anyone help me??

    Also I use deploy printer (windows 2003 r2) but I mostly want to do a default printer and really run scripts from particular OU's

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,697
    Thank Post
    352
    Thanked 803 Times in 718 Posts
    Rep Power
    348
    Software restriction policy set to allow it?
    Anything in the event log?

  3. #3

    Join Date
    May 2008
    Location
    Manchester
    Posts
    55
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    14
    Nothing in either client/ server event logs

  4. #4

    Join Date
    May 2008
    Location
    Manchester
    Posts
    55
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    14
    I've relised where I've screwed up, it works in user config - script but not computer -> user config. What I want to script default printer per room ie 6th form printer for 6th form, admin printer for admin, how would I do this through computer config? Thanks

  5. #5

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,678
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    46
    Run the script on the computer usinf loopback processing in Merg mode. That would allow you to apply a script to a Computer Account but using the User section of the policy.

    To set it up what you need to do is:

    1. Create a Group Policy with the Loopback Policy enabled:

    Computer Configuration --> Administrative Templates --> System --> Group Policy

    User Group Policy loopback processing mode: Enabled & Merge

    2. Create a Group Policy attached to the OU containing the computer account with the script in the:

    User Configuration --> Windows Settings --> Scripts Logon --> printers.vbs.

    The Replace operation stops all other User based policies applying there and only uses those that would apply to the Computer OU.

    The Merge operation uses the normal User based policies as well, but any policies set on the Computer OU take precedence.

  6. Thanks to Stuart_C from:

    irsprint (11th September 2009)

  7. #6

    Join Date
    May 2008
    Location
    Manchester
    Posts
    55
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    14
    Thanks, well my 6thform ou look lik ethis, if its correct?

    6thformOU

    6thformprinterinstall -> deploy printer mon + col
    loopbackgpo
    defaultprintergpo

  8. #7


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,796
    Thank Post
    231
    Thanked 882 Times in 758 Posts
    Rep Power
    300
    i just shove the actual printer scripts in netlogon\printers then write a script that copies a shortcut to the appropriate script (say 6th from) to c:\docs and settings\all users\start menu\programs\startup. that way it runs per machine for whoeve logs in

  9. #8
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    932
    Thank Post
    37
    Thanked 135 Times in 115 Posts
    Rep Power
    41
    can't you use the Print Management features that are part of 2003 R2...

    These allow you to deploy printers to OU's and either a user or machine via group policy.

  10. #9

    Join Date
    May 2008
    Location
    Manchester
    Posts
    55
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    14
    Print management in r2 doesnt include default printers, its defaulting to col when I want to default to mon

  11. #10

    Join Date
    May 2008
    Location
    Manchester
    Posts
    55
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    14
    Thanks Stuart, I did the group policy merge also with a 40 sec vb script delay and now it works

SHARE:
+ Post New Thread

Similar Threads

  1. WSUS gpo problem
    By z4ydi in forum Network and Classroom Management
    Replies: 7
    Last Post: 11th February 2008, 03:12 PM
  2. Problem with GPO after install
    By katem in forum Learning Network Manager
    Replies: 6
    Last Post: 28th November 2007, 03:31 PM
  3. Problem with Home Drive and login scripts
    By ArchersIT in forum Windows
    Replies: 4
    Last Post: 11th July 2007, 12:17 PM
  4. Printer scripts in GPO
    By Kyle in forum How do you do....it?
    Replies: 2
    Last Post: 25th April 2007, 07:12 AM
  5. Problem with Proxy settings in GPO
    By tosca925 in forum Windows
    Replies: 9
    Last Post: 18th January 2006, 12:54 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
  •