Discussion Locked

Fresh network printers

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have two NT4 servers (PDC &BDC) which act as print servers and one Linux print server. There are 4 print devices. I want to create a log on script to delete all the printers in every users profile and recreate a new standard set of printers, as Iwill be recreating all the printers on the two NT boxes with(more)helpful names and turning the Linux box into a proxy.I have some ideas that I could use reg.exe from resource kit. This would be for some 98 clients and NT clients with local profiles.
Peter

6 replies

by dfigueroa

This should be a piece of cake. I'm not sure if this works for Win9x clients, but for NT/2000 clients, it should be a slam dunk.

Get the resource kit utility con2prt.exe and put it in the system32 directory of each client machine. Then put the following lines in your login scripts.

con2prt /f 'deletes existing print connections
con2prt /cd \\servername\defaultprintername
con2prt /c \\servername\printername
con2prt /c \\servername\printername

in each case the servername is the name of the print server and the printername is the share name of the shared printer. NT Clients will automatically download the driver from the print server (in most cases.. this can be changed), and Win9x clients will have to have the driver loaded on the server, or locally. (9x only downloads the driver once).

by dfigueroa

Forgot to say that the 'deletes existing print connections is a comment.. don't actually put that in your script.

by pete_may

Thanks for the answer, con2prt seems very helpful but as far as I am aware I can only delete valid printers on NT boxes with it. Can you think of a way of deleting all! printers including those on Linux box and those which now have invalid names. There are only a few 98 boxes so I could do those by hand, it's NT I'm worried about. Then those points are yours.
But after seeing your profile I have a question about Austin Texas !! is Celis brewery big in your neck of the woods as living in Brussels people take there beer very seriously.
Peter

by ahartman

We use a logon script similar to what you are talking about. The if exist command makes this possible. Here is are logon script. We use them more for drive mapping but substitute the drive mapping for your printer mapping and it should work.@echo off
net time \\ccs2 /set /y

rem IF EXIST L:\NUL net use l: /delete
IF EXIST N:\NUL net use n: /delete
IF EXIST R:\NUL net use r: /delete
IF EXIST S:\NUL net use s: /delete
IF EXIST T:\NUL net use t: /delete
IF EXIST Y:\NUL net use y: /delete

rem net use l: \\ccs3\iknow
net use n: \\ccs2\internet
net use r: \\ccs2\pmdb
net use s: \\ccs2\sbt
net use t: \\ccs2\sbtpro
net use y: \\ccs2\y-drive

rem Leave z commands at end for 95 and 98 users to get rest of mappings.

IF EXIST Z:\NUL net use z: /delete
net use z: \\ccs2\c

rem regedit /y z:\HOME\BS\UTIL\iestrtpg.reg

rem regedit /s Z:\HOME\BS\UTIL\ieupdate.reg

This discussion is closed to new replies.