windows time on domain machine including domain controllers "The following error occurred: Access is denied. (0x80070005)"

Ahmed Maher Abdelsalam 21 Reputation points
2023-08-07T07:33:04.55+00:00

when i am trying to change or update windows time on all my domain machine including domain controllers i got this error

"The following error occurred: Access is denied. (0x80070005)"

i am in enterprise admins group and local admin group, OS on domain controller windows server 2016,

i tried all commands with PowerShell and CMD, i added a new domain controller and move roles to is but same issue,

i am trying to apply GPO to sync time with (firewall - PDC - core switch) but time is not correct,

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 42,511 Reputation points
    2023-08-07T09:26:32.7466667+00:00

    Hi AHmed,

    The error code is basically Access Denied issue, It seems there was changes to the permissions on the Domain via a GPO or some tool? Please investigate any changes that might have impacted. However you can try below code to see if it resolves the issue-: Test this one of the Domain Controller or a PC.

    net stop w32time

    w32tm /unregister //deletes regkeys

    w32tm /register //fresh setup of regkeys

    sc config w32time type= own //otherwise error because of incompatible SID

    sc config w32time type= share //for windows server 2012 R 2 only, otherwise access denied error, e.g. for /query /status

    net start w32time

    Or this

    go to Services and open Windows Time service. Click on Log On tab and check the service starts under Local System account. Choose it if not and restart Windows Time service.

    Hope this helps.

    JS

    ==

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.