General discussion


Install printers via logon scripts!

By gdagostino ·

Does anyone have an example of a logon script I can use in my Windows 2000/2003 active directory that will install network printers automatically?


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by Winterfrost In reply to Install printers via logo ...

You can do it with KiXtart very easily:

See here for some "gotcha" info on setting default printers with KiXtart:

If you don't want to use KixTart, you can try doing it the ugly way:;en-us;314486

Collapse -

by ewgny In reply to Install printers via logo ...

If you want to add printers based on group membership.

Collapse -

KIX login script to map printers, network drives and setting changes

by cody In reply to

Have a look at this here:

It shows you how to do this using KIX with examples. You can also use it to map certain printers based on the user's security group membership. Example, if you only want colour printing for certain people.

Hope that helps.

Collapse -

by johnscorp In reply to Install printers via logo ...

' SimplePrintersNorth.vbs
' VBScript to connect network printers located in North Building
' Version 1.0 - NOVEMBER 19 2007
Option Explicit

Dim objNetwork

'Declare old printers
Dim strUNColdPrinter1 'North RICOH 3235C PS on hfm-srv01
Dim strUNColdPrinter2 'North RICOH 3235C PCL6 on hfm-srv01

'Declare new printers
Dim strUNCPrinter1 'North RICOH 3235C PS on hfm-srv04
Dim strUNCPrinter2 'North RICOH 3235C PCL6 on hfm-srv04

'Define old printers
strUNColdPrinter1 = "\\hfm-srv01.hoffmann.local\North RICOH 3235C PS"
strUNColdPrinter2 = "\\hfm-srv01.hoffmann.local\North RICOH 3235C PCL6"

'Define new printers
strUNCPrinter1 = "\\hfm-srv04.hoffmann.local\North RICOH 3235C PS"
strUNCPrinter2 = "\\hfm-srv04.hoffmann.local\North RICOH 3235C PCL6"

'Should be obvious
On Error Resume Next

'Create Objects
Set objNetwork = CreateObject("WScript.Network")

'Remove old printers
objNetwork.RemovePrinterConnection strUNColdPrinter1
objNetwork.RemovePrinterConnection strUNColdPrinter2

'Add new printers
objNetwork.AddWindowsPrinterConnection strUNCPrinter1
objNetwork.AddWindowsPrinterConnection strUNCPrinter2

' End of script.

Related Discussions

Related Forums