Hi Devon,
 
    Assuming that the client machine is a 2000/XP domain member, it should sync time on its own [with a local DC] via the w32time service.  Apologies if not a domain member...will have to defer that one to the VBers then :-)
 
-DaveC
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Thursday, October 13, 2005 3:24 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] Authenticated drive mapping via .vbs

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.



-----------------------------------------------------------------
Visit our Internet site at http://www.reuters.com

To find out more about Reuters Products and Services visit http://www.reuters.com/productinfo

Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Reuters Ltd.

Reply via email to