@echo off
cls
echo Intellex internet Time Updater The Intellex must have an Internet connection
echo Created @ 20:21 25/06/2008 by Paul Smith and is copyright of cctv4all.com
echo This batch file has been written for the
echo Intellex CCTV DVR or IP Server (XP Embedded Only)
pause
rem ################################################################################
rem The below line will enable both services to start each time the machine is rebooted.
sc config w32time start= auto && sc config lanmanserver start= auto
rem ######################################################## ########################
rem The below line will start both services.
net start w32time && net start lanmanserver
rem #################################################################################
rem This will set the default Time update Interval to 900 (15 Minutes)
reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient /v SpecialPollInterval /t REG_DWORD /d 900 /f
rem #################################################################################
rem This will add a third NTP Time server and set it to the Europe Server
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /v 0 /t REG_SZ /d 0.europe.pool.ntp.org /f
rem #################################################################################
rem This will sync the time from our new default NTP Time server
net time /setsntp:0.europe.pool.ntp.org
w32tm /resync