Re: Removing printers remotely?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The user can use the prnmngr.vbs file in system32.

The policy you set only stops users from adding or deleting printers from
the UI. All spooler api calls will succeed.

The user will need to run this or you can run this when the user is logged
on.
prnmngr /?

prnmngr -d -p \\server\printer

If you do not want the users to realize they can in fact add and delete
printers you can use the registry information.
=======================
You can remotely remove the printer from the registry (I assume you have
admin rights on the remote system).

HKCU\printers\connections

just delete the key for the old printer then stop/start the spooler

sc \\userscomputername stop spooler
sc \\userscomputername start spooler


I hope this information is useful to others as well as yourself.
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

"Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx> wrote in message
news:eEYoV7U4FHA.268@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I setup a GPO to not allow my users to add or remove printers and it works
> good. Almost too good. Now I have a user with a printer that was
> installed prior to my policy and she wants it removed. Is there a way to
> remove a printer remotely from her profile? I know how to add and remove
> global printers on a workstation using the rundll32 printui.dll,
> PrintUIEntry /ga command. But I don't see how I can remove a printer from
> a specific user's profile.
>
> Any help is greatly appreciated.
>
> Thanks,
> Linn
>
>
>
>


.