When putting in any function or function on Windows Server 2016, an error seems that the server requires a restart: “
The request to add or take away options on the desired server failed. The operation can't be accomplished, as a result of the server that you just specified requires a restart”. OK, we restart our server and check out to set up a task once more. The similar error seems. And so it goes repeatedly .
As a consequence, we can not set up or take away any of the roles/options on Windows Server even after restarting the server and putting in the latest updates.
The server occasion log (Event Viewer -> Windows Logs -> System) reveals an error with the EventID 7041 and Service Control Manager as a supply. The occasion description says:
This service account doesn't have the required person proper "Log on as a service".
To remedy the issue, you will need to grant the logon as a service permissions to “
NT SERVICEALL SERVICES” (and
NT SERVICEMSSQL$MICROSOFT##WID, if the error is said to the or SQL Server function).
- Open the Local Group Policy Editor:
- Go to Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> User Rights Assignment;
- Find the Log on as a service coverage;
- As you may see, there isn’t a
NT SERVICEALL SERVICESon this coverage. Let’s strive to add it: Add User or Group -> NT SERVICEALL SERVICES. An error happens: identify not discovered.
How are you able to add a service account to a neighborhood coverage? The solely potentialmanner I may discover to grant the “Log on as a service” permissions to NT SERVICEALL SERVICES is to use the ntrights.exe instrument (from the outdated Windows Server 2003 Resource Kit).
Download and set up the Server 2003 Resource Kit (rktools.exe), then grant the SeServiceLogonRight permission utilizing these instructions within the elevated command immediate:
cd “C:Program Files (x86)Windows Resource KitsTools”
ntrights.exe +r SeServiceLogonRight -u “NT SERVICEALL SERVICES”
Granting SeServiceLogonRight to NT SERVICEALL SERVICES ... profitable
ntrights.exe +r SeServiceLogonRight -u “NT SERVICEMSSQL$MICROSOFT##WID”
Make positive that NT SERVICEALL SERVICES has appeared within the “Log on as a service” permissions within the Group Policy Editor console.
Restart your Windows Server and check out to set up/take away a task once more. No errors ought to seem.