|
Ok. The problem appears to be that I was
testing it on the machine that held the shares. I was under the (mistaken)
impression that you could map a network printer on the machine that is sharing
that printer – just as you can do with file shares. Guess not. When I tried it
(finally) from a workstation, the original script ran correctly. This process has led me to other
questions: - So far, all of these printers have the
default Windows drivers. What if I try to automate the install of a new printer
or want to specify a different driver? - If the printer is already installed, the
script appears to leave it alone. Is it actually leaving it alone or is it just
writing over it? If someone has made a change to the printer under their
profile, will that get wiped away? Thanks again for all the help. -- nme From: Paul Wilkinson
[mailto:[EMAIL PROTECTED] Try On 12/7/05, Noah
Eiger <[EMAIL PROTECTED]>
wrote: Hi
– I
am trying to modify a VBS found on the Internet to map multiple printers. This
will be run for every user in an OU. I keep getting the following error for
line 8: 8007007B - The filename, directory name or volume syntax is incorrect I
have played around with the syntax but think I am missing something very basic
here. Any thoughts? I
got this from: http://www.computerperformance.co.uk/ezine/ezine16.htm#Example%203:%20Mapping%20Multiple%20Printers
'
Poached from Guy Thomas February 2004. '
****************************** Dim
multiPrinter, UNCpath1, UNCpath2, UNCpath3 UNCpath1
= "\\server.abc.private\HP Color LaserJet 3500" UNCpath2
= "\\server.abc.private\HP LaserJet 3300" UNCpath2
= "\\server.abc.private\HP LaserJet 5000" Set
multiPrinter = CreateObject("WScript.Network") multiPrinter.AddWindowsPrinterConnection
UNCpath1 multiPrinter.AddWindowsPrinterConnection
UNCpath2 multiPrinter.AddWindowsPrinterConnection
UNCpath3 '
WScript.Echo "Your printer is mapped from : " &
UNCpath1 _ '
& "and from : " & UNCpath2 WScript.Quit '
End of _vbscript_ --
-- -- |
- RE: [ActiveDir] Help with VB script to map printers Noah Eiger
- RE: [ActiveDir] Help with VB script to map print... Ken Schaefer
- RE: [ActiveDir] Help with VB script to map print... Active Directory
- RE: [ActiveDir] Help with VB script to map print... Rich Milburn
- RE: [ActiveDir] Help with VB script to map print... Ulf B. Simon-Weidner
