RE: [ActiveDir] Help with VB script to map printers

2005-12-08 Thread Active Directory
Title: RE: [ActiveDir] Help with VB script to map printers If you are using that exact script. Line eight asks for UNCpath3 Line 3 4 specify UNCpath2 change UNCpath2 on line 4 to UNCpath3 hth Rick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Noah Eiger Sent

Re: [ActiveDir] Help with VB script to map printers

2005-12-08 Thread Za Vue
Below is an example in my environment: If IsMember("GROUPNAME") Then MapDrive "G:", "\\SERVER\SHARE$" (I hide all my user shares) MapDrive "P:", "\\SERVER\SHARE-2$" gDrive ="G:\" pDrive ="P:\"

RE: [ActiveDir] Help with VB script to map printers

2005-12-08 Thread Rich Milburn
BAHHH! now works for me too! Must have been a Hotfix MS released recently hehe --- Rich Milburn MCSE, Microsoft MVP - Directory Services Sr Network Analyst, Field Platform Development Applebee's International, Inc.

RE: [ActiveDir] Help with VB script to map printers

2005-12-08 Thread Ulf B. Simon-Weidner
Hello Noah, besides from the other answers: Are you planning on implementing any single Windows Server 2003 R2 in the close future? If yes then you can use the print-managementconsole which will allow you to publish printers by group policy to either users or computers and you only

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread WILLIAMS, J.D.
My wsh book shows the command to be .AddPrinterConnection not .AddWindowsPrinterConnection HTH Thanks, JD Northrop Grumman Information Technology Commercial, State Local Solutions 512-377-x235 Alphapage 866-521-6091 E-Page [EMAIL PROTECTED] From: Noah

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread AD
Actually both are valid. From: WILLIAMS, J.D.Sent: Wed 07/12/2005 2:31 PMTo: 'ActiveDir@mail.activedir.org'Cc: '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] Help with _vbscript_ to map printers My wsh book shows the command to be .AddPrinterConnection not .AddWindowsPrinterConnection HTH

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Rich Milburn
Try using Chr(34) instead of quotes for your paths i.e. UNCpath1 = \\server.abc.private\ Chr(34) HP Color LaserJet 3500 Chr(34) Chr(34) is how you get quotes into a string at least its the only way Ive ever gotten to work my WSH doesnt seem to like the double quotes I see some

Re: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Paul Wilkinson
I'd guess that you have path problem. Try copying and pasting \\server.abc.private\HP Color LaserJet 3500 , with the quotes, in your start-run box and see if it connects that printer. If it doesn't work then you need to look at the ip name and share name, and double check security permissions. On

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Ed Crowley [MVP]
This should work: UNCpath1 = "\\server.abc.private\"HP Color LaserJet 3500""" Ed Crowley MCSE+Internet MVPFreelance E-Mail PhilosopherProtecting the world from PSTs and Bricked Backups! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich MilburnSent: Wednesday,

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Ed Crowley [MVP]
Strange. I've never had problems with double double-quotes in a _vbscript_. Ed Crowley MCSE+Internet MVPFreelance E-Mail PhilosopherProtecting the world from PSTs and Bricked Backups! From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich MilburnSent: Wednesday, December

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread WILLIAMS, J.D.
Quite. And, when I change the script for a server\printer on my network, it works. The only difference is that I don't have any printer shares with spaces. Not sure if it would be a big deal. Along with what Rich said, if you write scripts in Word, opposed to Notepad, the " character is

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Noah Eiger
Thanks to all for suggestions. I pasted the path directly into the run line as Paul suggested. This worked fine and brought up the printer immediately. I then made the Chr(34) change as Rich suggested. When I did this, it told me the printer name was wrong. If I add an echo as below,

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Cace, Andrew
You shouldn't need the extra quotes in the printer name/path. The value of the variable is passed in its entirety, it doesn't get truncated because it contains spaces. Someone else already recommended trying to connect to the printer from the Run line, I'll second that. -Andrew From:

Re: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Paul Wilkinson
Try multiPrinter.AddWindowsPrinterConnection \\server.abc.private\HP Color LaserJet 3500etc.Rewrite it all out in a basic text editor like notepad to ensure you aren't getting some hidden character junk. Btw, I've confirmed in one of my login scripts that has the same line, and it works with a

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Noah Eiger
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

RE: [ActiveDir] Help with VB script to map printers

2005-12-07 Thread Ken Schaefer
--- Original Message --- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rich Milburn Sent: Thursday, 8 December 2005 7:17 AM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Help with VB script to map printers : my WSH doesn't seem to like the double quotes I see some