Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch File to remove all printers

Status
Not open for further replies.

andyds

IS-IT--Management
Feb 22, 2007
91
0
0
GB
I need to create a batch file that removes all currently installed printers for a user when they log in to their Windows 2003 TS session.
I then need it to install all the printers from our new print server.
I was going to put the batch file in the logon script for the users GPO once it's working.

Any help would be appreciated. I don’t know where to start on this.
 
I have found out how to remove all printers using the lines below in a batch file. It's the creating of them that I'm still having problems with.

@echo off
reg delete "hkcu\printers\connections" /f
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top