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!
|