From: Matthias Schwegler on
Hello Newsgroup,

I want to use a VBScript to add some printer connections: (Printers are
shared on a Windows 2003 PDC)

When I try to run the script on the server, I always get this error message:
"The filename, directory name or volume syntax is incorrect" (Error Code:
8007007b).

But the UNC Path is correct, if I use some other path I get an error that
the printer name is not correct...

An Example Script:
Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\10.152.108.1\Farblaser Epson
C2000"

Any ideas?

Thanks,
Matthias


From: Scott Micale on
I am getting a similar error but the code is 8007007E. I need help with
this as well. Here is my script.

'
' Label Printers.vbs - Windows Logon Script.
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\recwarehouse\label_printer."

Thanks!


"Matthias Schwegler" <no(a)spam.de> wrote in message
news:eS5aMgHiFHA.500(a)TK2MSFTNGP09.phx.gbl...
> Hello Newsgroup,
>
> I want to use a VBScript to add some printer connections: (Printers are
> shared on a Windows 2003 PDC)
>
> When I try to run the script on the server, I always get this error
> message:
> "The filename, directory name or volume syntax is incorrect" (Error Code:
> 8007007b).
>
> But the UNC Path is correct, if I use some other path I get an error that
> the printer name is not correct...
>
> An Example Script:
> Set objNetwork = WScript.CreateObject("WScript.Network")
> objNetwork.AddWindowsPrinterConnection "\\10.152.108.1\Farblaser Epson
> C2000"
>
> Any ideas?
>
> Thanks,
> Matthias
>
>


From: James Whitlow on
"Scott Micale" <hrm_admin(a)news.postalalias> wrote in message
news:eNi$hBKiFHA.1948(a)TK2MSFTNGP12.phx.gbl...
> I am getting a similar error but the code is 8007007E. I need help with
> this as well. Here is my script.
>
> '
> ' Label Printers.vbs - Windows Logon Script.
> Set objNetwork = CreateObject("WScript.Network")
> objNetwork.AddWindowsPrinterConnection "\\recwarehouse\label_printer."

Just curious; Are you using the printer name as it appears on the server or
the network share name?


From: Scott Micale on
Network sharename.


"James Whitlow" <jwhitlow(a)letter.com> wrote in message
news:%23VgHbSKiFHA.3692(a)TK2MSFTNGP09.phx.gbl...
> "Scott Micale" <hrm_admin(a)news.postalalias> wrote in message
> news:eNi$hBKiFHA.1948(a)TK2MSFTNGP12.phx.gbl...
>> I am getting a similar error but the code is 8007007E. I need help with
>> this as well. Here is my script.
>>
>> '
>> ' Label Printers.vbs - Windows Logon Script.
>> Set objNetwork = CreateObject("WScript.Network")
>> objNetwork.AddWindowsPrinterConnection "\\recwarehouse\label_printer."
>
> Just curious; Are you using the printer name as it appears on the server
> or
> the network share name?
>
>



 | 
Pages: 1
Prev: Win32_ComputerSystem
Next: RUNAS+.exe