+ Post New Thread
Results 1 to 9 of 9
Windows 7 Thread, Printing in Technical; We seem to have an intermittent problem where users log in to a Windows 7 PC and sometimes the printer ...
  1. #1

    sippo's Avatar
    Join Date
    May 2008
    Location
    Swindon, Wiltshire
    Posts
    1,759
    Thank Post
    138
    Thanked 201 Times in 140 Posts
    Rep Power
    156

    Printing

    We seem to have an intermittent problem where users log in to a Windows 7 PC and sometimes the printer gets added, sometimes it doesn't. It really is random. We use a log on script to connect the printer which is on a 2008 r2 and uses the HP universal print driver.

    I think it's something to do with the print spooler. Is there a way of starting this via a log-on script?

  2. #2

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,572 Times in 1,252 Posts
    Rep Power
    340
    Is there a reason you don't deploy printers via GPO or GPP? It's a cleaner way of doing things with Windows 7.

  3. #3

    sippo's Avatar
    Join Date
    May 2008
    Location
    Swindon, Wiltshire
    Posts
    1,759
    Thank Post
    138
    Thanked 201 Times in 140 Posts
    Rep Power
    156
    Yeah that's what we are trying to do with GP Loopback.

  4. #4

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,035
    Thank Post
    890
    Thanked 1,475 Times in 1,012 Posts
    Blog Entries
    47
    Rep Power
    647
    I had that with GPP for so long I gave up and went to scripting. Then had problems with the Universal (Oki) driver and went back to model-specific drivers and it's all been spiffing since.

    Can you just tell it to run C:\Windows\System32\spoolsv.exe on login? (somewhere under GPO there's an admin template for run at login)

    net start spooler would be the other obvious one but I suspect you'll hit permissions errors there

  5. #5

    sippo's Avatar
    Join Date
    May 2008
    Location
    Swindon, Wiltshire
    Posts
    1,759
    Thank Post
    138
    Thanked 201 Times in 140 Posts
    Rep Power
    156
    What sort of scripting did you use?

    The issue is so random. When a user logs on a pc, then the printers won't be there. But if another user, with exactly the same policy, logs in the printers will be added. Sometimes some PC's add a printer, then sometimes it won't.

    It's a really frustrating one for everyone because it is so random!

  6. #6


    Join Date
    Sep 2008
    Posts
    1,793
    Thank Post
    331
    Thanked 261 Times in 213 Posts
    Rep Power
    120
    I had a similar issue with a bad driver when we upgraded the print server from 2003-2008. It took a while to check as it was caused by a bad print driver being left behind on the client when the printer was deleted but still caused the print spooler to crash and as a result no printers were listed. Only real solution I had was to remove the bad driver from the client and remap the correct printer.

    Printers were mapped based on group membership and the issue was being reported from different departments so I couldn't find a link. It turned out it was because the staff who had the problem were all in the same group and had installed the bad driver before I had updated it. I think it was the Kyocera universal driver we are now using instead of the model specific one which caused problems. If you have changed the driver recently it might be worth checking if the old driver is still installed on the client?

  7. #7

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,035
    Thank Post
    890
    Thanked 1,475 Times in 1,012 Posts
    Blog Entries
    47
    Rep Power
    647
    Quote Originally Posted by sippo View Post
    The issue is so random. When a user logs on a pc, then the printers won't be there. But if another user, with exactly the same policy, logs in the printers will be added. Sometimes some PC's add a printer, then sometimes it won't.

    It's a really frustrating one for everyone because it is so random!
    That was what it was like here. Worked fine 98% of the time, but 2% * 450 computers * (5 periods + lunch + break) = a lot of sessions with broken printer connections. It was improved with GPP by running a gpupdate /force as a Run on Login program, but when it came to policy refresh after 90 minutes printers might still disappear; disabling the refresh of printers stopped the login gpupdate working. Rock and a hard place!

    Quote Originally Posted by sippo View Post
    What sort of scripting did you use?
    As the GP objects were set up for GPP already, my printers are sent out by individual scripts - no fancy logic based on computer name (wouldn't work here anyway), just some 60-70 different GPOs to cover every printer and often cover it being default or just being additional. For a default printer, and this policy needs to be set to run before any other printer policies you script, I use
    Code:
    Dim server
    Dim printer
    
    ps0 = "\\PRINTSERVER\"
    printer = ""
    
    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 
    
    'Add Network printer
    wshNetwork.AddWindowsPrinterConnection server & printer
    
    'Set Default Printer
    wshNetwork.SetDefaultPrinter server & printer
    Edit the variables in lines 4 & 5 to suit.

    For additional printers, I just stripped out the "remove all network printers" section and the default printer bit, so
    Code:
    Dim server
    Dim printer
    
    ps0 = "\\PRINTSERVER\"
    printer = ""
    
    Set wshNetwork = CreateObject("WScript.Network")
    on Error Resume Next
     
    'Add Network printer
    wshNetwork.AddWindowsPrinterConnection server & printer
    I know those scripts are hardly exemplar work, but they're adapted from what I found lurking in corners on here and hacked together for my own purposes.

    As I said, though, even with scripts we had issues with the universal Oki driver, they were just more blatant - instead of just not adding the printer, it would appear with a big red X, and wouldn't connect. Switching back to specific drivers for each model solved that and now it's sweet as a nut (at last - took two months).

  8. Thanks to sonofsanta from:

    sippo (5th December 2012)

  9. #8

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,320
    Thank Post
    681
    Thanked 1,651 Times in 1,472 Posts
    Rep Power
    426
    Quote Originally Posted by sonofsanta View Post
    As I said, though, even with scripts we had issues with the universal Oki driver, they were just more blatant - instead of just not adding the printer, it would appear with a big red X, and wouldn't connect. Switching back to specific drivers for each model solved that and now it's sweet as a nut (at last - took two months).
    Now you've jixed it

    Ben

  10. #9

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    5,035
    Thank Post
    890
    Thanked 1,475 Times in 1,012 Posts
    Blog Entries
    47
    Rep Power
    647
    Quote Originally Posted by plexer View Post
    Now you've jixed it

    Ben
    I did the same thing in another thread yesterday, I can't help myself at the moment

    I'm either naÔvely optimistic about all this or just a subconscious glutton for punishment.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 8
    Last Post: 18th October 2005, 09:27 AM
  2. load balancing on print queues
    By browolf in forum How do you do....it?
    Replies: 3
    Last Post: 5th September 2005, 12:26 PM
  3. JetDirect 170 Print Servers
    By RobC in forum Hardware
    Replies: 4
    Last Post: 25th August 2005, 07:17 AM
  4. Network Printing
    By ninjabeaver in forum Windows
    Replies: 26
    Last Post: 22nd August 2005, 08:28 PM
  5. HP Jetdirect 300x External Print Servers
    By beeswax in forum General Chat
    Replies: 11
    Last Post: 22nd August 2005, 03:37 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
  •