Hi
I need to know if anyone has written or knows of a script that forces a
computer logging on to a network to use the time on the domain controller as
the client computers time.

danny m

Re: time server script by Roland

Roland
Thu Jun 23 10:17:09 CDT 2005

"Danny M" wrote in message news:uch8ox$dFHA.640@tk2msftngp13.phx.gbl...
: I need to know if anyone has written or knows of a script that forces a
: computer logging on to a network to use the time on the domain controller
as
: the client computers time.

You can do it with 'net time ...'
Type in: net time /? to get the syntax.
No script required but you can use a shell from WSH if you so desire.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp



Re: time server script by Tamas

Tamas
Fri Jun 24 03:11:06 CDT 2005


strTimeHost = \\servername
oShell.Run "net time " & strTimeHost & " /set /yes",0



"Danny M" <prosoldier@woolcom.com> az alábbiakat írta a következõ
hírüzenetben: uch8ox$dFHA.640@tk2msftngp13.phx.gbl...
> Hi
> I need to know if anyone has written or knows of a script that forces a
> computer logging on to a network to use the time on the domain controller
> as the client computers time.
>
> danny m
>



Re: time server script by Danny

Danny
Fri Jun 24 09:26:08 CDT 2005

Tamas

I tried the following script, but it comes back with a compiling error. Is
there something that I'm missing or is there more to the script.

Thanks in advance

Danny m

"Tamas Csaba" <tamas.csaba@belvarosi.hu> wrote in message
news:OMJcaRJeFHA.1356@TK2MSFTNGP10.phx.gbl...
>
> strTimeHost = \\servername
> oShell.Run "net time " & strTimeHost & " /set /yes",0
>
>
>
> "Danny M" <prosoldier@woolcom.com> az alábbiakat írta a következõ
> hírüzenetben: uch8ox$dFHA.640@tk2msftngp13.phx.gbl...
>> Hi
>> I need to know if anyone has written or knows of a script that forces a
>> computer logging on to a network to use the time on the domain controller
>> as the client computers time.
>>
>> danny m
>>
>
>



Re: time server script by Roland

Roland
Fri Jun 24 09:55:18 CDT 2005

"Danny M" <prosoldier@woolcom.com> wrote in message
news:OvcAwiMeFHA.3352@TK2MSFTNGP09.phx.gbl...
: I tried the following script, but it comes back with a compiling error. Is
: there something that I'm missing or is there more to the script.

Danny...

Please be specific. Did you only use the exact code given? How did you
call it? What was the exact error, without interpretation?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp