Link to home
Start Free TrialLog in
Avatar of thenrich
thenrich

asked on

Set local time

Using vb script how can I set the client side time to match the server from where the script resides. In this case it would be my domain controllers time I want to copy to all clients when they login.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of poisonis
poisonis

Do you have to use vb?  Here is the command prompt syntax:

NET TIME \\domaincontroller /SET /Y

so you could do a:

shell "NET TIME \\domaincontroller  /SET /Y"