chrisdot
chrisdot

Reputation: 789

Getting a "NetLogon" error when registring trying to regster a new agent under "NT Authority\System"

I'm trying to set up a new deployment group, with the creation of a new dedicated (windows) agent. The web UI is nice, as it is able to generate the power shell commands to get that done. But unlike the documentation, I don't get the little check box that says "include PAT", but this is not the problem here. (Maybe this is because I'm using a AzureDevops on premise Server version instead of the cloud managed service?)

Here is my problem. I run the script, I just give the PAT, and I let the default service user for the agent which is NT Authority\System (AUTORITE NT\Système in french, as I'm using a self hosted french windows VM). Finally the process exits with the following error. when trying to start the service: Cannot start service vstsagent.<devopsservername>.<agentpoolname>.<agentmachinename> on computer '.'.

When I go to the event viewer, I can see the following:

This computer is configured as a member of a workgroup, not as a member of a domain. The Netlogon service does not need to run in this configuration.

Whenever I go to the service pannel and try to start it manually I still get the same problem. When I switch user to "LocalSystem", everything goes fine...

What goes wrong? Why is it complaining about NETLOGON? Aren't "NT Authority\System" and "LocalSystem" the same account? Could it be related to the fact I'm using a french OS? (unable to select the relevant account by default? or something in this mood?)

Upvotes: 0

Views: 956

Answers (2)

chrisdot
chrisdot

Reputation: 789

So after having tested the same scenario with a standard en/US host running the agent, we do not get the problem. I suspect this is due to the french language where NT Authority\System is named AUTORITE NT\Système that can not be matched (due maybe to the é character?)

Upvotes: 0

Vito Liu
Vito Liu

Reputation: 8298

LocalSystem account is a built-in Windows Account. It is the most powerful account on a Windows local instance (More powerful than any admin account). It is part of NT Authority\SYSTEM.

As a workaround, we could open Control Panel / Administrative Tools / Services / NETLOGON and change it from automatic to manual and then stop it, then try it again.

Update1

My machine language is English and the test result as shown below.

Power shell:

enter image description here

Result:

enter image description here

Upvotes: 1

Related Questions