Computing.Net > Forums > Windows Server 2003 > How to remove printers using GPO

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to remove printers using GPO

Reply to Message Icon

Name: Daguerre
Date: May 28, 2009 at 06:05:07 Pacific
OS: Windows XP
Subcategory: Configurations
Comment:

Hello everyone,
One thing before i begin: Last month i changed of servers from novell to Microsoft 2003 servers. Even if i have received training, i still have a lot to learn with microsoft servers.

Here is my problem:
Right now in my schools, the printers are installed using directly IP address to the printers.
On one of the servers, we have a print server where we configure our new printers. So we made our print server there, configure the printers etc... And all is fine.

I know too that i can push my newly configured printers using the GPO. But how can i remove the ancient printers since they are in no way linked from gpo's or anything else to the windows server? Is there a way to remove them all (with the exception of pdf creator) and afterward push the newly configured printers using GPO?

Right now i have only GPO to push applications since SCCM will not be online before a few months.

Nice day
Dag



Sponsored Link
Ads by Google

Response Number 1
Name: blastman
Date: August 13, 2009 at 08:52:27 Pacific
Reply:

You can use a logon script (vbscript would be best) to unmapp all of the printers on a workstation. Then in the same script add the printers that it should have.

You could even get it to create a small txt file somewhere once it has been done so when the machine logs on again the logon script can see the txt file, relaise that has allready run and simply quit.

Hope it helps :)


0

Response Number 2
Name: Phatsta
Date: August 14, 2009 at 00:26:51 Pacific
Reply:

I use a script for removing network (but not local) printers, just like blastman talks about. It's actually a script for mapping network drives and whatnot as well, so I can't post it all here. I'll just copy the part that removes network printers and then hopefully you can paste it into a script of your own. It looks like this:

----------------------------------------------------------------------
On error resume Next
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set Printers = WshNetwork.EnumPrinterConnections

For i = 0 to Printers.Count - 1 Step 2

If Left(ucase(Printers.Item(i+1)),2) = "\\" Then
' WScript.Echo Printers.Item(i+1)
WSHNetwork.RemovePrinterConnection Printers.Item(i+1)
End IF
Next
----------------------------------------------------------------------

Hope that helps!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Backup Exec Tape Labeling... Problem with Windows AD D...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: How to remove printers using GPO

Lock desktop icons using gpo www.computing.net/answers/windows-2003/lock-desktop-icons-using-gpo/4155.html

How to ...setup and use server www.computing.net/answers/windows-2003/how-to-setup-and-use-server/3392.html

How to Remove a Child Domain www.computing.net/answers/windows-2003/how-to-remove-a-child-domain/5387.html