MSFN Forum: How to delete old network printers script - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to delete old network printers script Rate Topic: -----

#1 User is offline   dubsdj 

  • MCP
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 26-June 07
  • OS:none specified
  • Country: Country Flag

Posted 03 September 2007 - 03:03 PM

I'm having a problem with deleting old network printer connections that are no longer used that are in the registry.

Does anybody know of a script that can do this and be used with Group Policy?

The annoying thing is that when the user is logging in to the computers they are defaulting to the old disconnected printer.

I have tried the whole set default printer script but it never works, it only seems to work if I run it from their desktop. I tried putting the set default printer script in the Computer Startup GPO and the user logon script GPO but it just never seems to work... The printer still defaults to the disconnected network printer.

Maybe its just me but I think the whole adding and removing network printers is more complicated than it should be... Maybe I'm just missing something..


#2 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,000
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 September 2007 - 04:09 PM

If you don't mind learning a bit of Kix (assuming you don't know it already), you can do it pretty easily like this.

#3 User is offline   eyeball 

  • Have you tried turning it off and on again?
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,150
  • Joined: 28-October 05

Posted 03 September 2007 - 04:55 PM

use the following

\\server\share\con2prt.exe /f

in a login script and that will delete all printer network printer connections :)

u will need to search for con2prt on google

#4 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 September 2007 - 06:38 PM

what s the script you are using?

#5 User is offline   chilifrei64 

  • How do you like your Chili?
  • PipPipPipPipPip
  • Group: Members
  • Posts: 995
  • Joined: 16-February 05

Posted 04 September 2007 - 08:19 PM

This one will remove all printers attached to a specified print server (ie. you migrated to a newer print server)
http://lazynetworkad...tent/view/60/6/

#6 User is offline   dubsdj 

  • MCP
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 26-June 07
  • OS:none specified
  • Country: Country Flag

Posted 08 September 2007 - 04:44 AM

Well I had no luck with all of the things above.

Here's how i fixed my problem

1. I created a batch file and installed the printers
2. I then added the Stop and Start print services into the batch file after I had installed the printers.
3. I put the batch file in the group policy computer startup
4. I then created another batch file which runs the con2prt.exe and sets the printer i wanted as a default.
5. I created a shortcut to the con2prt batch file and put it in the all users startup folder on the machines where I wanted to default printer to be set.

I know its a bit of a dick in hand approach but it worked for me...

I hate printers.... For something so simple It's been a real nightmare to achieve.

#7 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 September 2007 - 02:26 PM

are these printers on a print server or are they directly attached to the network? Postsript or PCL drivers?

#8 User is offline   dubsdj 

  • MCP
  • PipPip
  • Group: Members
  • Posts: 181
  • Joined: 26-June 07
  • OS:none specified
  • Country: Country Flag

Posted 15 September 2007 - 05:38 AM

They are on the server

and are PCL

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy