Try this vbs script:
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\printserver\printer_mane"
WshNetwork.SetDefaultPrinter "\\printserver\printer_name"
good luck
[EMAIL PROTECTED] writes:
>----Original Message Follows----
>From: Richard Sumilang <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [ActiveDir] Connect to printer
>Date: Tue, 1 Apr 2003 10:26:45 -0800
>
>I have a Windows 2000 network running and all users log in to the server
>using Active Directory. I would like to have a bat script automatically
>connect people to a shared printer and have it set as the default. Please
>help :-)
Brahim Bouchaiba
Network administrator
Information technology
617-7359720
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/