First thing: have you installed any GPP hotfixes?
It's everyone's favourite topic! And it's driving me bl%%dy mad at the moment and making me look bad to boot.
We did the Windows 7 thing this summer, so printers needed redeploying which we did from a new 2k8R2 print server. We used to do printers by GPO (pushprinterconnections.exe etc.) but under 2k8R2, printers were never unlinked from roaming profiles, so students ended up with every printer in school added. Rubbish.
So we moved to GPP which, 98% of the time, works fine. We can set the default, clear all printers etc. but intermittently, printers will fail to install on login.
Each printer has its own GPO. Loopback processing is set to merge, and a shared printer is added under User Preferences using the FQDN of the server. Using the NetBIOS name was worse. Using the print server's IP made no difference. We need to add them shared for PCounter, we can't add them directly by IP.
Setting a VBS script to force a gpupdate on login seems to fix the problem at login. Unfortunately when policy refreshes in the background, printers then sometimes disappear. Not a problem for most people, but some staff are logged on at machines for longer than an hour so get hit by this 90 minute refresh (this includes my line manager in SMT).
If I set the group policy to not refresh printers during background policy refreshes, it prevents the login script from re-evaluating printers, so printers might be missing from login, therefore affecting more users. Not an improvement.
All my printers are using the most up to date drivers available (Oki Executive Series, fwiw). The most common error is 0x80070bc4 No printers were found but occasionally 0x8007007a The data area passed to a system call is too small crops up as well.
If I tick the Common option to Run in Logged On Users Security Context then I get errors about the environment being incorrect instead, and there's no improvement.
98% of the time it is fine. The printers are all added fine. There is no rhyme nor reason to the failures. I am going mad trying to pin this down.
So: anyone know why this happens occasionally? Anyone know how to stop background refreshes without blocking the script, or a way to retrigger the script on background refresh? A way of getting more detailed logs than what I'm seeing in the application log?
Or, if all else fails, anyone got a nice, quick, clean script to add a printer that won't slow logins down? No need for logic with the computer name etc. as the one-GPO-per-printer works fine.
tl;dr: why won't printer GPP just work, goddammit.
First thing: have you installed any GPP hotfixes?
This one solved a plethora of niggles for me: You experience a long domain logon time in Windows 7 or in Windows Server 2008 R2 after you deploy Group Policy preferences to the computer
It includes a bunch of previous hotfixes for GPP too, some of which were specifically for Printers.
sonofsanta (17th October 2012)
We have problems which are pretty similar to yours.....
It works 98% of the time and is generally good for students who log-in, use the computer, log-off and go to another classroom. No bother.
The problems seem to hit staff members who log in to a computer, use it then lock it and go to another classroom to teach. Then we get the 'The printers aren't working' cry......
I have considered forcing everyone to log off when they are finished and not allowing them to lock the PC and then go to another, but I just know that will be a world of hurt as well because some staff will not log-off and instead just leave their computer unlocked and open for anyone to use!!!
I just wish there was a solid, working solution for printer mapping - especially for schools!!!
Hotfix deployed, computer restarted, 3 of the 5 computers had "Printer could not be found" on both linked printers within half an hour of the hotfix going out. Buggrit.
Any other likely hotfixes anyone knows of?
I tried this move once and wound up crawling back to VB script on my hands and knees asking for forgiveness. I posted an example of the printer deployment sub we use to my blog. VB Script for network printer deployment - Blogs - EduGeek.net I don't know how it would behave in a mixed environment though, deploying printers using both VB and GPP. Good luck!
sonofsanta (18th October 2012)
I'm guessing I replicate the GPP (remove all printers, add new default) with something like:
but I am not a scripty person so I've cobbled that together from text files I have lying around - tell me if I'm going wrong. For additional printers I can just do the first line & penultimate pair of lines, I think?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 'Add Network printer wshNetwork.AddWindowsPrinterConnection "\\printserver.domain.local\PRINTER" 'Set Default Printer wshNetwork.SetDefaultPrinter "\\printserver.domain.local\PRINTER"
Last edited by sonofsanta; 18th October 2012 at 02:55 PM.
print related hotfixes...
- KB2537549 - Cannot deploy a printer by using a GPO if read-only domain controllers are exclusively used in the domain environment in Windows 7 or in Windows Server 2008 R2. This hotfix contains the most current version of PRINTER Group Policy Preferences for Windows 7/2008 Post SP1.
- KB2647753 - Update rollup for the printing core components in Windows 7 and Windows Server 2008 R2.
- KB2526028 - Printing performance decreases in Windows 7 or in Windows Server 2008 R2.
- KB2618574 - Print Spooler service saves the NetBIOS name of the print server in Windows 7 or in Windows Server 2008 R2
A list of other post-SP1 hotfixes can be found here...
Alas, I've just gone through all those hotfixes and it's still doing it. Scripts it is then!
Just... grr. I like the idea of GPP, I like the execution of GPP, I just don't like the way it doesn't bl%%dy work.
There are currently 1 users browsing this thread. (0 members and 1 guests)