General discussion

Locked

Install printers via logon scripts!

By gdagostino ·
Hi,

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?

Giacomo

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

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

You can do it with KiXtart very easily:
http://www.scriptlogic.com/Kixtart/htmlhelp/Functions/addprinterconnection.htm

See here for some "gotcha" info on setting default printers with KiXtart: http://www.techbytes.ca/techbyte66.html

If you don't want to use KixTart, you can try doing it the ugly way:
http://support.microsoft.com/default.aspx?scid=kb;en-us;314486

Collapse -

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

If you want to add printers based on group membership.
http://www.rlmueller.net/products.htm

Collapse -

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

by cody In reply to

Have a look at this here: http://www.thisishelpful.com/kix-login-script-to-map-printers-network-drives-and-setting-changes-a3.html.

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
WScript.Quit

' End of script.

Back to Windows Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums