I have read like 100+ articles on this error. Everyone seems to get it and everyone has a different issue. I have tried lots of things but cant seem to resolve this.
The error is such
Line: 2
Char: 1
error: The Filename, directory name, or volume label syntax is incorrect.
code: 8007007B
Source: (null)
The script is simple as follows.
Set prnvbs = CreateObject("WScript.Netw
ork")
prnvbs.AddWindowsPrinterCo
nnection "\\10.19.2.30\LabPrinter"
prnVbs.SetDefaultPrinter "\\10.19.2.30\LabPrinter"
I have used both the IP, and FQDN neither work. The printer is shared with no spaces. I have added and removed, and added and removed this thing serveal times, different share names dont seem to help either.
Server 2003, all workstations are Win xp sp2/3
Thanks
Start Free Trial