Removing printers remotely?
WinXPTalk.com Forum Index WinXPTalk.com
Forums for Windows XP users.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winxptalk.com
Removing printers remotely?

 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Print & Fax
Author Message
Linn Kubler
Guest





Posted: Fri Nov 04, 2005 5:27 pm    Post subject: Removing printers remotely? Reply with quote

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
Back to top
Alan Morris [MSFT]
Guest





Posted: Fri Nov 04, 2005 11:33 pm    Post subject: Re: Removing printers remotely? Reply with quote

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@chartwellwisc2.com> wrote in message
news:eEYoV7U4FHA.268@TK2MSFTNGP10.phx.gbl...
Quote:
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



Back to top
Linn Kubler
Guest





Posted: Fri Nov 04, 2005 11:45 pm    Post subject: Re: Removing printers remotely? Reply with quote

Thanks for the info Alan, good tips. I decided to look at the rundll32
printui.dll, PrintUIEntry command a bit closer and found that I could remove
the printers from the user using it after all. I logged in as the user and
typed the following at a command prompt.

rundll32 printui.dll, PrintUIEntry /dn /n\\server\printer share

and that removed the printer. You are right, my policy only stops them from
installing or deleting printers via the GUI. Fortunately my users aren't
computer savy enough to find a command like the one above so it works for
me.

Thanks again,
Linn

"Alan Morris [MSFT]" <alanmo@online.microsoft.com> wrote in message
news:%23sawaWW4FHA.1188@TK2MSFTNGP12.phx.gbl...
Quote:
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@chartwellwisc2.com> wrote in message
news:eEYoV7U4FHA.268@TK2MSFTNGP10.phx.gbl...
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





Back to top
 
Post new topic   Reply to topic    WinXPTalk.com Forum Index -> Print & Fax All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forums Access Forums Windows Server Exchange Server Help
New Topics Powered by phpBB