Windows Time Service Not working

We were experiencing issues with time synchronization across our domain, so we found a server where the time source was working OK and exported the whole W32time Registry key.

We applied this to our domain group policy to distribute, but sent it to all our servers by mistake.
This has had the effect of breaking w32time on all our Servers.

I am not sure what part of W32time has broken the service but would like to know how to get the time settings back to default so that I can set them up again properly on our 2003 and 2008 servers

The error message when trying to start the service is:
Error 1083: the executable program that the service is configured to run does not implement the service

I have tried Unregister/Register commands with no success.
rodd3rsAsked:
Who is Participating?
 
-Juddy-Connect With a Mentor Commented:
The following worked for me (copied into a batch file)

w32tm /configure /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org",0x8 /syncfromflags:MANUAL
w32tm /config /update
net stop w32time
net start w32time
w32tm /resync /nowait

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /resync /rediscover
0
 
5g6tdcv4Commented:
0
 
rodd3rsAuthor Commented:
Hi 5g6tdcv4: Already tried this Fix both manually and using fix me option. No Joy still no time service starting up.

Hi Juddy:

Tried running batch file but get lot of errors (see Below) Also now when I try to start the time service I am getting:
The Specified service has been marked for deletion. What do I do now?

Batch file info:
C:\Windows\System32>w32tm /configure /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.
org 2.pool.ntp.org",0x8 /syncfromflags:MANUAL
The following error occurred: The system cannot find the file specified. (0x8007
0002)

C:\Windows\System32>w32tm /config /update
The following error occurred: The service has not been started. (0x80070426)

C:\Windows\System32>net stop w32time
The Windows Time service is not started.

More help is available by typing NET HELPMSG 3521.

C:\Windows\System32>net start w32time
System error 1058 has occurred.

The service cannot be started, either because it is disabled or because it has n
o enabled devices associated with it.

C:\Windows\System32>w32tm /resync /nowait
The following error occurred: The service has not been started. (0x80070426)

C:\Windows\System32>net stop w32time
The Windows Time service is not started.

More help is available by typing NET HELPMSG 3521.

C:\Windows\System32>w32tm /unregister
The following error occurred: Access is denied. (0x80070005)

C:\Windows\System32>w32tm /register
The following error occurred: The specified service has been marked for deletion
. (0x80070430)

C:\Windows\System32>net start w32time
System error 1058 has occurred.

The service cannot be started, either because it is disabled or because it has n
o enabled devices associated with it.

C:\Windows\System32>w32tm /resync /rediscover
The following error occurred: The service has not been started. (0x80070426)
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
-Juddy-Commented:
For some reason your time service does not want to start.  Try to restart again by running net start w32time from a command prompt and check the event log.
0
 
rodd3rsAuthor Commented:
Rebooted server to see if anything changed and now no windows time service is installed.
So I guess it was marked for deletion.

How do I now re install the time service?
0
 
-Juddy-Commented:
What O/S?
0
 
rodd3rsAuthor Commented:
windows server 2008 enterprise 64bit sp2
0
 
5g6tdcv4Commented:
What does the windows time service show in services.msc?
0
 
5g6tdcv4Commented:
Have you set the GPO to "not configured"  for all of the time services?
GP takes precedence
0
 
rodd3rsAuthor Commented:
Since I ran the batch file and rebooted, the Windows time service has disappeared from the services mmc
0
 
5g6tdcv4Commented:
sfc /scannow


I hate to quote my source but........
http://www.ehow.com/how_6746942_install-microsoft-windows-time-service.html
lol
0
 
rodd3rsConnect With a Mentor Author Commented:
Hi Juddy,

Thanks for your help, the script does do the job, although I would have preferred a solution that doesnt require taking the servers down. basically we have used most of your script.

REM Uninstalls and Reinstalls Windows Time Service - Reboot is required
w32tm /configure /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org",0x8 /syncfromflags:MANUAL
w32tm /config /update
net stop w32time
net start w32time
w32tm /resync /nowait

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /resync /rediscover


We have to run command prompt as Local Admin then run the script this marks the time service for deletion.
We then reboot the server, this uninstall's the time service.
log back in and run command prompt as Local Admin then run the script again which re-installs the time service and sets it up correctly using the Domain time source.
one more reboot not really necessary but its a windows server so to make sure. All is now working.
Just got to do it 80 more times and I'm Done.
0
 
-Juddy-Commented:
Wow.
0
 
rodd3rsAuthor Commented:
Ruddy provided the script that fixed the issue.
But we had to modify it for our own purpose and add a little more information on the process that was under taken to implement the fix.

The fix is still quite cumbersome but a fix all the same, I would have preferred a solution that did not involve taken servers out of production to fix
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.