ERROR_USER_NOT_ADMIN

Alex Abramov 1 Reputation point
2021-10-15T16:27:41.96+00:00

Hi,
I am trying to sync two servers using Web Deploy.
I tried using both msdeploy and Sync-WDServer and get ERROR_USER_NOT_ADMIN for both of them.
I followed all the steps on MS docs and Stack Overflow, bot nothing is helping.

Both servers are VM's on Azure running Win 2019 and IIS 10. Neither is on a domain so NetLogon is not running.
The user credentials I have been using are in Administrator and MsDepSvcUsers groups.

Any further suggestions?

Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Abramov 1 Reputation point
    2021-10-18T13:01:45.387+00:00

    Thank you for your response.

    Yes I have tried this.
    I have created a user, and placed this user into both the Administrators and MsDepSvcUsers groups.
    I even did this on both the local and remote machines.

    I am logged in as the built-in account (it is not called Administrator) when running the msdeploy.


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.