You might have encountered an error when trying to change the time on your Windows computer. When probing the issue you may have stumbled upon the error log just to find the error code 0x80070005. The error 0x80070005 states that you don’t have access to perform the action. You can also encounter this problem when you attempt to query the configuration of the Time Service (w32tm) in Command Prompt.
The Time service encountered and was forced to shut down. The error was 0x80070005: Access is denied.
If you’re presently facing issues synchronizing the Windows Time service, this guide shows you how to fix it.
Access is denied when syncing time service w32Time, Error 0x80070005
Let us see how to fix Fix Event ID 46, The Time service encountered and was forced to shut down, The error was 0x80070005, Access is denied when trying to sync Time issue on Windows 11/10.
Now, in order to resolve this issue, we are required to perform the following things.
- Re-register the Windows Time service.
- Re-register the Windows Time service and its DLL file.
- Query the Time service.
- Synchronize external time server.
- Update the Windows Registry.
If you don’t know how to do it, don’t worry, all you need to do is follow the instructions mentioned below.
First of all, open the Command Prompt as an administrator. You can do that by searching “cmd” from the Start Menu, right-clicking on the Command Prompt, and selecting “Run as administrator”.
Now, let us first stop the Windows Time service, using the following command.
stop w32time
Once the service is stopped, we need to unregister the Windows Time service using the below command.
w32tm /unregister
You can now close the Command Prompt and restart your computer. Once your computer starts, run the following three commands one by one.
To register the Time service DLL file:
regsvr32 /u w32time.dll
To register the Time service:
w32tm /register
To query the status of the Time service:
sc query w32time
Control Panel will display the Windows Time service as a shared process, and the Time service will start automatically when your machine boots. This will resolve the 0x80070005 (Access is denied) error.
You now have to restart your computer again.
On restart, open the Command Prompt with elevated privileges and continue with the following command to sync time for external sources.
pushd %SystemRoot%\system32 .\w32tm /config /update /manualpeerlist:”ntp0.cornell.edu,0x09 sundial.columbia.edu,0x09 1.us.pool.ntp.org,0x09 2.us.pool.ntp.org,0x09? /syncfromflags:MANUAL /reliable:yes .\w32tm /resync popd
Now, open the Registry Editor, and go to the following location
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
Change the value of SpecialPollInterval from 3600 to 900 to set the server polls for every 15-minute interval as opposed to an hour.
This is important if 0x80070005 your PDC runs on a virtual machine.
I hope this post helps you resolve the issue.
Read: Windows Time Service not working.
How to resolve Error Code 0x80070005?
The Time service error 0x80070005 indicates that there is some issue with the Time Service (w32tm) as evidenced by the error message. However, this is usually nothing but a glitch that be resolved by re-registering the time service and then syncing it to match the actual time. You can head to the guide mentioned earlier to know more.
Also Read: Error 1061, The service cannot accept control messages at this time.