It is sometimes require to run time server on windows (usually for nvr soft, for ONVIF cams)
create a timeserver_enable.bat file with following content inside:
@echo Enabling time server, require to run as Admininstrator
@echo Changing registry values to enable time server and set it autostart (delayed)
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time” /v “Start” /f /d “2” /t REG_DWORD
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time” /v “DelayedAutostart” /f /d “1” /t REG_DWORD
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\TimeProviders\NtpServer” /v “Enabled” /f /d “1” /t REG_DWORD
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Config” /v “AnnounceFlags” /f /d “5” /t REG_DWORD@echo enable its ports on firewall from all profiles
netsh advfirewall firewall add rule name=TimeServer dir=in profile=any localport=123 protocol=udp action=allow@echo restartng Windows Time service
net stop w32time
net start w32timepause
thanks: http://russlescai.wordpress.com/2013/01/07/setup-windows-8-as-ntp-time-server/