Welcome to Microsoft Q&A!
Thank you for the detailed description and for already checking the GPO deployment and the Let Windows manage my default printer setting.
Based on the behavior you described, I would not start by deleting the printer driver.
The first thing to investigate is whether a stale printer connection or queue registration still exists for the affected user or at the computer level. If it does, removing only the Plug and Play device may not remove the configuration responsible for creating it.
1. Why the PnP printer returns after pnputil /remove-device
pnputil /remove-device removes the device instance, but it does not necessarily remove the printer connection or other configuration that originally created that device.
If the underlying printer connection remains, Windows may enumerate it again after a restart or sign-in and create another device instance. In other words, the presence of the driver package in the Driver Store alone does not necessarily mean that the driver is responsible for recreating the printer.
Additionally, /remove-device separately from /delete-driver. The latter is used to delete a driver package from the Driver Store.
For this reason, I would first try to remove the underlying printer connection or queue rather than repeatedly removing the PnP device.
2. Remove the retired server's printer connections
Sign in as the affected domain user and check what Windows sees:
Get-Printer | Format-Table Name,ComputerName,Type,DriverName
If the stale printer is returned, remove that connection:
Remove-Printer -Name "<printer name>"
The important point is to perform the removal in the context of the user who has the stale connection. Removing it while signed in as a different administrator does not necessarily remove another user's per-user printer connection.
For a traditional network printer connection, you can also use PrintUI:
rundll32 printui.dll,PrintUIEntry /dn /n \\oldserver\printer
/dn as the option to delete a network printer connection.
For per-computer printer connections, you can first enumerate them:
rundll32 printui.dll,PrintUIEntry /ge
Then remove the confirmed obsolete connection:
rundll32 printui.dll,PrintUIEntry /gd /n \\oldserver\printer
/ge for enumerating per-computer printer connections and /gd for deleting them.
3. Why the printer can appear for the local administrator but not the domain user
This behavior suggests that you may be dealing with different per-user printer state, rather than a printer that is installed identically for every user on the computer.
A connection created in one user's context may not be present in another user's context. Therefore, what you see while signed in as the local administrator may differ from what the domain user sees.
For troubleshooting, I would run the below from each affected account and compare the results:
Get-Printer
If registry inspection becomes necessary, I recommend backing up the relevant keys first and examining the affected user's hive rather than deleting Print-related registry branches broadly. For legacy printer connections, HKCU\Printers is one area worth examining, but supported printer-management methods should be preferred whenever they can still identify and remove the connection.
4. Why Settings and Foxit Reader can show different printer lists
The fact that Settings > Printers & scanners shows the printer while Foxit Reader does not necessarily mean that either view is incorrect.
Windows Settings, the Windows printing subsystem, and individual applications do not necessarily enumerate and display printers in exactly the same way. An application can also provide its own print interface or filter the queues it considers available.
For that reason, I would use Get-Printer, PrintUI/Print Management, and PnP enumeration to determine what still exists rather than relying on one application's print dialog as the authoritative inventory.
5. Remove the driver only after the printer connections are gone
Once the obsolete connections have been removed and you have confirmed that no other printer needs the driver, you can review the installed printer drivers:
Get-PrinterDriver
An unused driver can then be removed with:
Remove-PrinterDriver -Name "<driver name>"
Remove-PrinterDriver for removing printer drivers and notes that administrator credentials are required.
If you specifically need to remove a third-party package from the Windows Driver Store, first identify its published oem#.inf:
pnputil /enum-drivers
After confirming that the package is no longer required, it can be removed using:
pnputil /delete-driver oem##.inf /uninstall
I would be cautious with /force on production systems, since the same driver package may still be required by another printer.
Recommended cleanup order
I suggest testing the following on one affected workstation first:
- Run Get-Printer as the affected domain user and as the local administrator and compare the results.
- Remove any
\\oldserver\... connection in the context of the user who owns it usingRemove-PrinterorPrintUI`` ``/dn. - Check for per-computer connections with
PrintUI /geand remove confirmed obsolete entries with/gd. - Sign out or restart the computer and check both
Get-Printerand Printers & scanners again. - If the
queue/connectionis gone but an orphaned PnP device remains, remove that device. - Remove the obsolete driver package only after verifying that no remaining printer requires it.
This approach is safer than starting with pnputil /delete-driver, because removing a driver package and removing the printer connection that may be recreating the device are two different operations.
Also, disabling Let Windows manage my default printer would not normally remove an existing \\oldserver\printer connection. That option controls default-printer management, so the fact that disabling it did not resolve the stale entries is not unexpected.
References:
rundll32 printui.dll,PrintUIEntry | Microsoft Learn
PnPUtil Command Examples for Windows Driver Management - Windows drivers | Microsoft Learn
PrintManagement Module | Microsoft Learn
Remove-PrinterDriver (PrintManagement) | Microsoft Learn
If you find it useful, please click Accept Answer.
Thank you for choosing Microsoft Q&A.