Sponsored Links

Login Form






Lost Password?

Syndicate

Home arrow RSS Feeds
Sync Time With Domain Time Server PDF Print E-mail
User Rating: / 2
PoorBest 
Written by Cheyenne Harden   
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.

Comments
Add NewSearch
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
 
Security Image
Please input the anti-spam code that you can read in the image.

Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved.

 
Tag it:
Delicious
Furl it!
Spurl
digg
YahooMyWeb
< Prev   Next >
 

Google Search

Google