Follow us on Twitter

Have a question on something? Visit the forum for help.

NEW!! LazyNetworkAdmin Forums! Click -> here

 

Sync Time With Domain Time Server PDF Print E-mail

I have an application called PDM Works Enterprise.
When some people access the appliation the side effect is their system time slows down.
I have look on forums and called application support, but no dice.
So, I created a script that syncs time with your domains time server.
Thanks to the Windows Scripting Guys for explaining %COMSPEC%.

----------COPY EVERYTHING BELOW THIS LINE for the Script----------
'Sync system timew with domain time server
'Created by Chey Harden 6.18.07

On Error Resume Next

Set wShell = CreateObject("WScript.Shell")
wShell.Run "%COMSPEC% /c net time \\NAME_OF_YOUR_TIME_SERVER_HERE /set /y",0,TRUE
set wShell = Nothing

----------COPY EVERYTHING ABOVE THIS LINE for the Script----------

 

PLEASE MAKE SURE NO WORD WRAPPING IS HAPPENING IN YOUR SCRIPT!!!

1. Create a scheduled task for this script to run.
 
This information is provided "AS IS" with no warranties expressed or implied.




Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! TwitThis Joomla Free PHP
 
 

Sponsored Links