
Logon Script - Synchronizing Time with a Nt 4.0 PDC
Hi All,
one annotation:If the client is NT, the "normal" user don't have the
privilege to set date and time. One has to be admin or member of the "power
users" group (at least so far as I remember). For that reason, we always use
the timeserv from the NT Resource Kit (a service must be installed by
admins, so we put it in the inital installation).
Best regards,
Manfred Braun
(Private)
Lange Roetterstrasse 7
D68167 Mannheim
Germany
(Remove the anti-spam-underscore to mail me!)
Quote:
> Hi Tom, that's what I was thinking about using but wondering if there was
a
> different function :)
> Thanks for your help
> Eric
> > > I am developing a login script that includes synchronizing the local
> > > users clock with our PDC(NT4). We used to do this using a batch file,
> > > however I am hoping that someone can shed some light on how to
> > > accomplish this using our VBScript through the WSH. I would prefer not
> > > having to call on our existing batch file to run to do this but rather
> > > doing it entirely through the script if possible. Any help out there
> > > for a busy sysadmin?
> > > Eric :)
> > The best solution I know is ...
> > CreateObject("Wscript.Shell)_
> > Run "net time \\server /set /y", 0
> > Same as with a batch, but no batch required.
> > Tom Lavedas
> > -----------
> > http://www.pressroom.com/~tglbatch/