Fact:
Win 2000 server sp3, running Terminal Services
Printer: HP LaserJet 4 (shared as; HPLJ4)
Servername: server-admin
I have a standard script that should map a printer shared from my server. When i run my script i get error in line 4 (code 7007007b)that say "file name, directory name, or volum label syntax is incorrect". I have verified that this isn't wrong. The script work fine on my winXP workstation but not local on server.
Script code:
Set WshNetwork = CreateObject("WScript.Network"
PrinterPath = "\\server-admin\HPLJ4"
PrinterDriver = "HP LaserJet 4"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Win 2000 server sp3, running Terminal Services
Printer: HP LaserJet 4 (shared as; HPLJ4)
Servername: server-admin
I have a standard script that should map a printer shared from my server. When i run my script i get error in line 4 (code 7007007b)that say "file name, directory name, or volum label syntax is incorrect". I have verified that this isn't wrong. The script work fine on my winXP workstation but not local on server.
Script code:
Set WshNetwork = CreateObject("WScript.Network"
PrinterPath = "\\server-admin\HPLJ4"
PrinterDriver = "HP LaserJet 4"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver