+ Post New Thread
Results 1 to 9 of 9
Windows 7 Thread, Printers with Roaming profiles in Technical; Morning All, I'm in the process of setting up printers on Group Policy, this is my first time doing it ...
  1. #1

    Join Date
    Apr 2009
    Location
    Essex
    Posts
    40
    Thank Post
    3
    Thanked 6 Times in 3 Posts
    Rep Power
    13

    Unhappy Printers with Roaming profiles

    Morning All,

    I'm in the process of setting up printers on Group Policy, this is my first time doing it in an environment using Roaming Profiles.

    The problem is, when a user logs on to a machine with a printer targetted to the machines' OU, that printer installs, but when the user logs off and logs on to another machine in a different OU they get the printer targetted to that OU too, so eventually the user will have every printer available installed, instead of just the ones relevant to the room they are in.

    I have tried adding 'Delete All' to the policy (see attached screenshot) and putting it at number 1 in the order but it still doesn't work reliably..

    Any advise would be great please!

    Cheers

    Scott

    printers.jpg

  2. #2
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,269
    Thank Post
    218
    Thanked 235 Times in 203 Posts
    Rep Power
    75
    I do something similar to your setup, but I also have a log off script included in the GPO (well, to be honest I have a separate GPO that ONLY runs this logoff script, I just adjusted the processing order for the OU).

    But, that aside. The logoff script runs a program called "adprintx.exe" (google it or search on here) with a /F switch. It forces a delete of shared printer connections on the log off. Seems to work more reliably now


    :EDIT

    Got the name of the executable wrong

  3. Thanks to themightymrp from:

    Scottyboy99 (8th July 2014)

  4. #3

    Join Date
    Apr 2009
    Location
    Essex
    Posts
    40
    Thank Post
    3
    Thanked 6 Times in 3 Posts
    Rep Power
    13
    Thanks for that themightmrp, I'll test that out.

    This afternoon however, what I have come to realise is - when a user logs on to a machine, they get the correct printer for the machine and the previous printer(s) but if the user logs off and back on to the same machine, the rogue printer(s) delete and they are left with the correct printer.

    Obviously we can't make users log on twice, has anyone else come across this at all?

    Thanks,

  5. #4

    Join Date
    Apr 2007
    Location
    Cornwall
    Posts
    331
    Thank Post
    21
    Thanked 94 Times in 65 Posts
    Rep Power
    40
    I seem to remember we had this issue too (it was 4 years ago we went Windows 7 so I'm a bit vague) certainly we ended up putting vbs scripts on each PC that would first delete any existing networked printer, then connect to a specified printer. We then have a different script for each room and a script with no final 'connect to this printer' for PCs with no access to a printer.

    We mainly do follow me printing now, so less of a problem.

    Meldrew

  6. #5
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,269
    Thank Post
    218
    Thanked 235 Times in 203 Posts
    Rep Power
    75
    @Scottyboy99 - what you are describing is pretty much identical to the weirdness we were getting. The logoff script calling adprintx.exe was my solution If it deletes the shared printers when a user logs off then they won't exist (hopefully) on the next machine they log into.

  7. Thanks to themightymrp from:

    Scottyboy99 (8th July 2014)

  8. #6
    AButters's Avatar
    Join Date
    Feb 2012
    Location
    Wales
    Posts
    522
    Thank Post
    166
    Thanked 116 Times in 89 Posts
    Rep Power
    45
    Yeh had this too very annoying. Created a User GPO in the Pupils OU that contained the following log off script VBS. Works a treat.

    User Configuration (Enabled)
    Policies
    Windows Settings
    Scripts
    Logoff
    For this GPO, Script order: Not configured
    Name: PrintersLogoff.vbs

    And contents of PrintersLogoff.vbs:

    Code:
    Set wshNetwork = CreateObject("WScript.Network")
    on Error Resume Next
     
    'Deletes all network printers
    Set clPrinters = wshNetwork.EnumPrinterConnections
    On Error Resume Next
    For i = 0 to clPrinters.Count - 1 Step 2
     wshNetwork.RemovePrinterConnection clPrinters.Item(i+1), true
    Next
    Basically, it deletes any mapped network printers for the pupil on logoff, but leaves the printer drivers on the PC. When the pupil logs in next the drivers are already on the PCs so the printers get re-mapped in less than a second.
    Last edited by AButters; 8th July 2014 at 03:26 PM.

  9. Thanks to AButters from:

    Scottyboy99 (8th July 2014)

  10. #7
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,269
    Thank Post
    218
    Thanked 235 Times in 203 Posts
    Rep Power
    75
    ^^ same principle Seems to work (touch wood)

  11. #8

    Join Date
    Apr 2009
    Location
    Essex
    Posts
    40
    Thank Post
    3
    Thanked 6 Times in 3 Posts
    Rep Power
    13
    Thanks @themightymrp - ADPRINTX works a treat. I can cancel the skip and put the gun down now
    Last edited by Scottyboy99; 8th July 2014 at 03:35 PM.

  12. #9
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,269
    Thank Post
    218
    Thanked 235 Times in 203 Posts
    Rep Power
    75
    Awesome!!



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 12
    Last Post: 16th November 2011, 02:55 PM
  2. Replies: 0
    Last Post: 19th October 2011, 03:03 PM
  3. Deploying Thunderbird to teachers with roaming profiles
    By 3s-gtech in forum Windows Server 2000/2003
    Replies: 0
    Last Post: 6th May 2010, 11:57 AM
  4. Printers and Roaming Profiles
    By Trenton_Lister in forum Wireless Networks
    Replies: 4
    Last Post: 25th September 2008, 03:03 PM
  5. Server 2008 with Roaming Profiles
    By button_ripple in forum Windows Server 2008
    Replies: 1
    Last Post: 17th August 2008, 02:47 PM

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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