Network printer question

Permabanned
Joined
9 Apr 2006
Posts
1,608
Evening everyone,

Ive a question about network printers I hope you can help me with:

Ive just added a network printer to our network at work, and there are about 50 users that need to use this new printer.

Now ive shared it in active directory and people can add it through there, however is there a quick way to add this printer to everyone profile so that when they log on its mapped automatically?

Thanks for your time,

Jon
 
Easy Peasy :p

You could write a simple KiX Script to map printers at logon. First, go to the KiXtart site and download the latest version of KiX. Unzip this into the root of the netlogon share on the server.

Now, open notepad and add the following info:

Code:
; Printer KiX Script
; 26-04-2006

; Set Console Information:

SetConsole("HIDE")
BreakOff

; Check Workstation Name:

SELECT

CASE INSTR(@WkSta,"Workstation Name Where Printer Needs to Be Added")

; Add Printer Connection:

AddPrinterConnection("\\servername\printersharename")

; Set Default Printer:

SetDefaultPrinter("\\servername\printername")

; Check Whether Script was Successful:

IF @ERROR = 0

? "Script Successful!"

ELSE

? "Script Failed!"

ENDIF

; Exit Script:

ENDSELECT

EXIT

then save this as kixtart.kix into the root of the netlogon share but remember to modify the printer, workstation and share names in the above info :) Then in the logon batch file for the users, add

Code:
KIX32.EXE

and save that. Should work a treat :D And who says that KiX is old hat stuff? :p
 
Back
Top Bottom