
Time synchronize with WSH under NT4
Quote:
> How can i synchronise the time using WSH, i know how to do it with a batch
> file (net time \\sbserver /set /yes), but i am now moving from batch file
> logins to vbs script file logins. How can i do it with vbs script & WSH?
> I am running NT4 server and w98 se workstations
Hi
Nothing built-in for this in WSH. I would have done this from a VBScript:
Set oShell = CreateObject("WScript.Shell")
oShell.Run "net time \\sbserver /set /yes", 0, True
The 0 will hide the command prompt from being viewed.
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and a ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter