Windows 10 Deleting network printer with powershell on domain PC client

  • Thread starter Thread starter DanMgr
  • Start date Start date
D

DanMgr

Guest
Hi there,


I was able to install or delete a network printer for all users using the utility printui.exe so that whenever a user login on the computer, he or she has access to the printer. Now, I'd like to do the equivalent in powershell using Get-WMIObject -Class Win32_Printer and the Delete() method. However, the printer is not deleted for all users and when I tried to restart the spooler, the printer reinstalls itself.


I don't know if it counts for something(it probably does) but even when the printers are gone, there seems to be traces of them in the registries.


Anybody can help me with that?


thx.

More...
 
Back
Top