Printer Forums

Printer Forums - Printing Help and Support > Newsgroups > Printer Newsgroups > Windows 2000 Printing > Mapping a network printer through logon script

Reply
Thread Tools Display Modes

Mapping a network printer through logon script

 
 
Sheldon Wolf
Guest
Posts: n/a

 
      12-10-2003, 05:44 PM
All systems in our environment are 2000/2003/XP-----------

I'm sure this is an easy task, but I'm trying to figure
out how to map a network printer through the clients logon
script. Here is what I found on Microsoft's site:

Set objNetwork = Wscript.CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\HRServer01
\Printer1"

I placed this into my logon script (obviously changing the
server and printer names to reflect ours) and I receive
the following error during the execution of the logon
script or just running it from a command prompt:

'objNetwork.AddWindowsPrinterConnection' is not recognized
as an internal or external command, operable program or
batch file.

Please let me know what I'm missing. Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing, Imaging, Fax and All-in-One FAQ for October 27, 2003 Brian Boston [MSFT] Windows 2000 Printing 0 10-27-2003 04:26 PM
Printing, Imaging, Fax and All-in-One FAQ for October 2, 2003 Brian Boston [MSFT] Windows 2000 Printing 0 10-03-2003 10:51 PM
Printing, Imaging, Fax and All-in-One FAQ for October 2, 2003 Brian Boston [MSFT] Windows 2000 Printing 0 10-03-2003 10:51 PM
Printing, Imaging, Fax and All-in-One FAQ for August 15, 2003 Brian Boston [MSFT] Windows 2000 Printing 0 08-15-2003 09:19 PM
Printing, Imaging, Fax and All-in-One FAQ for July 31, 2003 Brian Boston [MS] Windows 2000 Printing 0 07-31-2003 07:14 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32