deleting profiles, want to delete network printers too RRS feed

  • General discussion

  • Is there a way to delete network printers like '\\server\printer' for all users?  Just deleting the profile doesn't seem to completely clean it up.  For example, there are extra registry entries in the HKLM part of the registry.  I'm hoping for a nice wmi way to do it.

    "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider"

    • Edited by JS2010 Monday, April 23, 2018 8:49 PM
    • Changed type Bill_Stewart Friday, July 27, 2018 6:13 PM
    • Moved by Bill_Stewart Friday, July 27, 2018 6:14 PM This is not GPO support forum
    Monday, April 23, 2018 8:42 PM

All replies

  • Please read the following post first from the top of this forum:

    This forum is for scripting questions rather than script requests

    -- Bill Stewart [Bill_Stewart]

    Monday, April 23, 2018 8:48 PM
  • Well, I could do it this way, but I'd have to run it as each user:

    (Get-WmiObject Win32_Printer | where Network).delete()

    Monday, April 23, 2018 8:50 PM
  • Network printers are per-user, not per-computer. To remove a network printer for a user, you have to remove it as that user.

    -- Bill Stewart [Bill_Stewart]

    Monday, April 23, 2018 8:51 PM
  • So group policies that delete profiles and add network printers are incompatible then?

    Monday, April 23, 2018 9:09 PM
  • You can ask specific questions about Group Policy in the Group Policy forum.

    -- Bill Stewart [Bill_Stewart]

    Monday, April 23, 2018 9:14 PM
  • I found another way to deal with it:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider]

    Monday, April 23, 2018 10:29 PM