Solved Network Printer keeps re-adding itself
-
I have one particular network printer that keeps re-adding itself (upon gpupdate) to domain client machines when you delete it. Not only that, but it adds three instances of itself, two of which are bogus as they show up as "Printername on PRINTSERVERNAME". Of the three instances, the third is correct and shows up correctly as just the "Printername" portion.
Without the rule being applied to any client machine (i.e. no machine is pulling that rule from Group Policy) the two bogus instances still show up, which tells me that they are unrelated to the rule.
Firstly, I've used
gpresult -r
to get a list of active GPO's on a client machine, and I've ran through each GPO scouting for any signs of that printer rule in the following locations:COMPUTER POLICY>POLICIES>WINDOWS SETTINGS>DEPLOYED PRINTERS
COMPUTER POLICY>POLICIES>ADMIN TEMPLATES>PRINTERS
COMPUTER POLICY>PREFERENCES>CONTROL PANEL SETTINGS>PRINTERSUSER CONFIG>POLICIES>WINDOWS SETTINGS>DEPLOYED PRINTERS
USER CONFIG>PREFERENCES>CONTROL PANEL SETTINGS>PRINTERSSecondly, I checked the client machine's registry under
HKLM\System\CurrentControlSet\Control\Print\Printers and these printers don't seem to exist there.I verified that Print Management on the Print Server only listed the one instance of that Printer. Furthermore, the same registry path as above but on the Print Server lists only one of this printer, so everything looks good there.
I checked that I didn't have a double listing of the GPO throughout the hierarchy within Group Policy.
I've checked the printer queue on both instances of that printer and they are empty.
I'm wondering if this isn't another replication issue as we have two pooled DC's, separate from the Print Server. On that idea, and after seeing that each DC had a different list of printers within Print Management, I've deleted DC (local) servers from the Print Servers list via Print Management on both DC's and replaced them with the Print Server, but it will not populate the list of printers, ports, etc or fix this issue. I've also verified via repadmin that replication is occurring between the DC's.EDIT: I don't think that avenue has any weight to it.
What am I missing?
EDIT 2: I never found the culprit, but I added a GPO at domain level that stopped it.
USER CONFIG\POLICIES\ADMIN TEMPLATES\CONTROL PANEL\PRINTERS:
Browse the network to find printers: Disabled
Turn off Windows default printer management: Enabled
Prevent additions of printers: Enabled -
@mr-jones Okay so I've narrowed it down a bit. I've found that another printer entirely may be the culprit, but I've yet to figure out why.
I have a GPO for another printer let's call it Classroom Xerox printer. I deleted it (for good measure) and recreated it by deploying the printer using New> TCP\IP Printer under USER CONFIG\PREFERENCES\CONTROL PANEL SETTINGS\PRINTERS.
If I disable that rule and
gpupdate /force
on client machine the bogus printer duplicates stay gone. As soon as I enable the GPO and rungpupdate /force
again, it brings back both the Classroom Xerox printer & the bogus duplicates of the other printer.Curious.
EDIT: After playing around with it, I've come to the conclusion that it's not the Classroom Xerox printer that's the culprit specifically, but ANY PRINTER GPO. That is to say that only when I add any GPO to that OU that has a printer mapping, it adds those two bogus printer instances again. Any GPO that does not have printer mappings does not result in this behavior.
This is certainly a head scratcher for me.
-
@mr-jones said in Network Printer keeps re-adding itself:
rings back both the Classroom Xerox printer & the bogus duplicates of the other printer.
There must be a computer GPO with deploying a printer. Have you check that?
-
@dbeato said in [Network Printer keeps re-adding itself]
There must be a computer GPO with deploying a printer. Have you check that?
Are you referring to Local Group Policy Editor? If so, yes I checked that.
-
@mr-jones No actual GPO on the domain.
-
Could it be that one (or more) of the machines that are picking up this policy are also configured to publish / share their printers and the other machines are configured to automatically map locally shared devices? Just spit-balling, but this sounds like one of those situations where there are actually a couple of issues combining instead of just 1 simple problem.
-
This post is deleted! -
@dbeato said in Network Printer keeps re-adding itself:
@mr-jones No actual GPO on the domain.
@dbeato Ah. Thanks. Yeah I isolated it to any printer mapping GPO.
-
@notverypunny said in Network Printer keeps re-adding itself:
Could it be that one (or more) of the machines that are picking up this policy are also configured to publish / share their printers and the other machines are configured to automatically map locally shared devices? Just spit-balling, but this sounds like one of those situations where there are actually a couple of issues combining instead of just 1 simple problem.
I've simultaneously deleted every printer from every machine in the OU. I've even tried stopping the print spooler on all machines in the OU, but updating policy with any printer deployment GPO still brings them back. With that being said, unless there is a better way to check, I don't think it's another machine publishing it. I do however think that you are correct about it being a combined issue, but I'm running out of ideas to troubleshoot this.
I did notice that under the registry path HKLM\System\CurrentControlSet\Control\Print\Printers there are like 8 extra OneNote printers listed. After cross-referencing them with
PS>Get-Printer | fl Name, PortName
and deleting the extras, they also all come back with a policy update, but are never listed in Printers & Scanners or Devices and Printers. Maybe it's related? -
OK, so it sounds like it's back to basics time:
- Multiple networks / segments or all on a common network
- use something like advanced IP scanner to see if there's anything unknown on the network it's self
- Keep in mind that printer sharing / publishing also has smb / samba in the loop, not just the print-spooler
Where I'm going with this is that there could be something publishing on the network with upnp or, zero-conf, bonjour or some other automagic protocol that your endpoints are only picking up based on one of the options (or defaults) in the GPO. The other thing to check (if not already done) is the protocols and services that are enabled on the printers themselves. Best thing is to disable all of the ones that you aren't using like bonjour, air-print, etc etc
-
@notverypunny said in Network Printer keeps re-adding itself:
OK, so it sounds like it's back to basics time:
- Multiple networks / segments or all on a common network
- use something like advanced IP scanner to see if there's anything unknown on the network it's self
- Keep in mind that printer sharing / publishing also has smb / samba in the loop, not just the print-spooler
Where I'm going with this is that there could be something publishing on the network with upnp or, zero-conf, bonjour or some other automagic protocol that your endpoints are only picking up based on one of the options (or defaults) in the GPO. The other thing to check (if not already done) is the protocols and services that are enabled on the printers themselves. Best thing is to disable all of the ones that you aren't using like bonjour, air-print, etc etc
Thanks. I'm going to take a break from this until tomorrow. But you've given me a few options. I appreciate it.
-
@mr-jones Xerox printer by chance?
-
@jt1001001 said in Network Printer keeps re-adding itself:
@mr-jones Xerox printer by chance?
I think so, he mentions "Classroom Xerox" in an earlier post
-
@jt1001001 said in Network Printer keeps re-adding itself:
@mr-jones Xerox printer by chance?
Yes, we have 11 of them.
-
@mr-jones Xerox has a feature called WSD that allows for Windows to discover printers, sometimes automatically. Try disabling WSD on the xerox to see if that alleviates the issue (we disable it on all ours)
-
@jt1001001 said in Network Printer keeps re-adding itself:
@mr-jones Xerox has a feature called WSD that allows for Windows to discover printers, sometimes automatically. Try disabling WSD on the xerox to see if that alleviates the issue (we disable it on all ours)
All printers has WSD. It is horrid
-
@jaredbusch said in Network Printer keeps re-adding itself:
@jt1001001 said in Network Printer keeps re-adding itself:
@mr-jones Xerox has a feature called WSD that allows for Windows to discover printers, sometimes automatically. Try disabling WSD on the xerox to see if that alleviates the issue (we disable it on all ours)
All printers has WSD. It is horrid
Truth!
-
@jt1001001 said in Network Printer keeps re-adding itself:
@mr-jones Xerox has a feature called WSD that allows for Windows to discover printers, sometimes automatically. Try disabling WSD on the xerox to see if that alleviates the issue (we disable it on all ours)
I had to double check, but it's turned off on all.