Search code examples
windows-10datadog

Access Denied while running datadog commands


I installed datadog agent locally on my windows 10 machine. By default it stored data in ProgramData folder in C drive. It does not give option to select different drive while installation. Now when I run any command, it gives me below error. Can we edit permissions to it allow access to ProgramData folder.

C:\Program Files\Datadog\Datadog Agent\embedded>agent.exe status
Getting the status from the agent.

Error: unable to access authentication token: open C:\ProgramData\Datadog\auth_token: Access is denied.

Solution

  • Installed it as "Run with Admin rights" and it fixed the issue.