Quotes work.  Now I just need to be able to sync time with my local DC via .vbs.

 

In my batch file, I have the standard:

 

net time /domain:mydomain /set /yes > nul

 

How would this work in _vbscript_?

 

-Devon

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Crawford, Scott
Sent: Thursday, October 13, 2005 1:59 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Authenticated drive mapping via .vbs

 

Sorry, username and password need to be in quotes.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Thursday, October 13, 2005 12:04 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Authenticated drive mapping via .vbs

 

I seem to getting a syntax error on the comma or space after the username.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Crawford, Scott
Sent: Thursday, October 13, 2005 11:49 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Authenticated drive mapping via .vbs

 

Set objNet = CreateObject("Wscript.Network")

MsgBox “Mapping Drive letter for IPCC Access”

objNet.RemoveNetworkDrive “I:”

objNet.MapNetworkDrive "I:", “\\10.1.0.103\DESKTOP_CFG”, False, ipccuser, password

 

I’ve attached the script I use for mapping drives on all our clients.  It’s a little customized for our environment, but it allows you to map based on group (included nested) membership as well as characteristics of the IP address.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Thursday, October 13, 2005 10:10 AM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] Authenticated drive mapping via .vbs

 

What would be the correct way to convert this batch file to a .vbs?

 

Echo Mapping Drive letter for IPCC Access

if exist i:\ net use i: /delete

net use i: \\10.1.0.103\DESKTOP_CFG password  /user:ipccuser /PERSISTENT:NO

 

Devon Harding

Windows Systems Engineer

Southern Wine & Spirits - BSG

954-602-2469

 


__________________________________
This message and any attachments are solely for the intended recipient
and may contain confidential or privileged information. If you are not
the intended recipient, any disclosure, copying, use or distribution of
the information included in the message and any attachments is
prohibited. If you have received this communication in error, please
notify us by reply e-mail and immediately and permanently delete this
message and any attachments. Thank You.

Reply via email to