I am trying to add printers to XP clients using logon scripts on a 2000 Server PDC. The logon script already maps drives so the set up is correct. The syntax doesn't do anything.
I'm not using any special scripting tools. Just editing the existing .bat file with notepad.
I've tried
net use lpt1: \\servername\printershare
and
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer1\printershare"
WshNetwork.SetDefaultPrinter "\\PrintServer1\printershare"
with no luck. The print server is different from the PDC and I have been able to map a drive to the print server, so the connection is good.
I'm not using any special scripting tools. Just editing the existing .bat file with notepad.
I've tried
net use lpt1: \\servername\printershare
and
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer1\printershare"
WshNetwork.SetDefaultPrinter "\\PrintServer1\printershare"
with no luck. The print server is different from the PDC and I have been able to map a drive to the print server, so the connection is good.