The request to add or remove features on the specified server failed. the operation cannot be completed because the server that you specified requires a restart.
Role and feature refresh failed with the following error: The Request to list features available on the specific server failed. The operation cannot be completed, because the server that you specified requires a restart.
Restarting the server does not help.
Check the eventlog for an error from Service Control Manager ID 7041 that reads:
The MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID with the currently configured password due to the following error:
Logon failure: the user has not been granted the requested logon type at this computer.Service: MSSQL$MICROSOFT##WID
Domain and account: NT SERVICE\MSSQL$MICROSOFT##WIDThis service account does not have the required user right “Log on as a service.”
Check the “Windows Internal Database” service is running, it probably is not and can’t start.
If this is a domain controller you can assign the logon as service right for the account using the “Default Domain Controllers Policy” GPO.
- Open gpmc.msc
- Select the “Default Domain Controllers Policy” under the “Domain Controllers” OU in the left tree.
- Right click on it and select edit.
- In the editor navigate to “Computer Configuration, Policies, Windows Settings, Security Settings, Local Policies, User Rights Assignments”.
- Open the properties of the “Log on as a service” item.
- Add the user “NT SERVICE\MSSQL$MICROSOFT##WID” (without quotes) using the Add User or Group button.
- Close the window with OK. Close the GPO editor.
- Run gpupdate and restart the computer.
If this is a normal member or standalone server you can assign the logon as service right for the account using the “Local Security Policy”.
- Open secpol.msc
- Navigate to” Local Policies, User Rights Assignments”.
- Open the properties of the “Log on as a service” item.
- Add the user “NT SERVICE\MSSQL$MICROSOFT##WID” (without quotes) using the Add User or Group button. If this is greyed out, than the item is set using Domain Group Policies (see above).
- Close the window with OK. Close the local security policy editor.
- Run gpupdate and restart the computer.