Close Menu
    Facebook X (Twitter) Instagram
    Saturday, October 11
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»WSUS Role failed on Windows server 2012 with error “the operation cannot be completed because the server that you specified requires a restart”

    WSUS Role failed on Windows server 2012 with error “the operation cannot be completed because the server that you specified requires a restart”

    Eswar KonetiBy Eswar KonetiJune 13, 1:08 pm3 Mins Read CM2012 39,525 Views
    Share
    Facebook Twitter LinkedIn Reddit

    I was trying to setup new Configuration Manager 2012 SP1 build on Windows server 2012 with SQL Server 2012 SP1 installed .Everything went fine except Windows server update services .It keeps saying error with restart needed.Here is what i got every time when i install WSUS after restart the server.

    Update: You can also refer the solution posted here : http://blogs.technet.com/b/heyscriptingguy/archive/2013/04/15/installing-wsus-on-windows-server-2012.aspx

    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.

     

    image

    Why does it fail every time though server is restarted several times after the error appear in the above screen ?

    How do we troubleshoot this ?

    Go to event viewer ,windows logs->system ,you see below error message:

    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##WID
    This service account does not have the required user right "Log on as a service."

    User Action
    Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user right is assigned to the Cluster service account on all nodes in the cluster.
    If you have already assigned this user right to the service account, and the user right appears to be removed, check with your domain administrator to find out if a Group Policy object associated with this node might be removing the right.

    How do i fix this ?

    There are 2 possible solutions to fix this issue :

    1. By adding the account (NT SERVICE\MSSQL$MICROSOFT##WID) to log on as service using gpedit.msc 2)  implement the same solution using GPO.

    1.Add account NT SERVICE\MSSQL$MICROSOFT##WID as log on as service using GPEDIT.MSC on local server

    Open gpedit.msc using administrator account ,Computer Configuration—>Windows Settings—>Security Settings—>Local Policies—>User Rights Assignment

    Go to properties of Logon as Service,click on Add user or Group,Enter NT SERVICE\MSSQL$MICROSOFT##WID ,click ok.

    Restart the server and start installing WSUS role .

    2) Implementing using GPO :

    Go to your group policy management console,edit default domain policy

    Computer Configuration—>Policies—>Windows Settings—>Security Settings—>Local Policies—>User Rights Assignment

    Note: It is not mandatory to edit the default domain Policy to enable this setting.You can also create new GPO and ensure to have Enforced (running on Server 2012) option is selected which can not be overwritten by Default Domain Controller.

    image

    Go to properties of Logon as Service,click on Add user or Group,Enter NT SERVICE\ALL SERVICES ,click ok.

    image

    Now move onto the server,open command prompt and type gpupdate /Force to apply the GPO settings.

    To check if the settings are applied or not,you can run rsop.msc from the run command and see the changes applied or not.

    Once you confirmed the settings are applied,Start the installation of WSUS role again,this time It should be okay.

    Hope it Helps!

    NT SERVICE\MSSQL$MICROSOFT##WID Operation can not be completed Server you specified requires a Restart WSUS error on server 2012 WSUS role can not be installed on server 2012
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    How to detect the source of registry key modifications on windows devices – Intune

    November 21, 8:49 pm

    Identifying devices managed by Intune but not reporting to WUfB using KQL

    November 09, 10:28 am

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 8:48 pm

    30 Comments

    1. Gangaatharan on May 29, 2020 8:16 PM

      im unable to export metadata from old wsus server , its throwing fatal error, error in the application

      Kindly guide me

      Reply
      • Eswar Koneti on June 15, 2020 12:18 AM

        any reason to export the metadata from old wsus server? what is scenario here?

        Thanks,
        Eswar

        Reply
    2. heba wagih on May 3, 2020 7:47 PM

      Thank you very much.
      Kindly I want to understand why this error appears, I haven't even used WID database in installation I have chosen SQL database, Is there an explanation for this?

      Reply
      • Eswar Koneti on May 13, 2020 9:06 PM

        Hi,
        can you check the logs and event viewer for further troubleshooting? Did you check if windows internal database is not enabled in the server roles and features?

        Thanks,
        Eswar

        Reply
    3. Pingback: Die WSUS-Rolle lässt sich unter Windows Server 2012 R2 nicht erfolgreich installieren | Andys Blog – Linux & Windows

    4. jax on May 19, 2017 1:02 AM

      FYI: I tried for weeks to install WSUS on a 2012 R2 DC using the information here and other placed but it did not work. That is when I found out that, even if I could install it, it would cause serious problems: https://social.technet.microsoft.com/wiki/contents/articles/4236.guidance-about-wsus-on-a-domain-controller.aspx

      Reply
      • Eswar Koneti on June 6, 2017 9:46 PM

        I would never recommend to install WSUS on domain controller and always have WSUS server either on SCCM or remote.

        Regards,
        Eswar

        Reply
        • jax on June 7, 2017 3:18 AM

          WSUS has always run perfectly on DCs without any performance or security issues until the introduction of Server 2012. It is sad that it is no longer supported on DCs and businesses have to purchase a dedicated server for a simple service like WSUS. That said, I appreciate your post and your quick response to my concern.

          Reply
      • NJ on December 30, 2019 8:54 PM

        Simply install from powershell

        Reply
    5. Dominik on January 3, 2017 10:08 PM

      Hey, thanks a lot for this helpful post, was having the same issue on a freshly installed Windows Server 2012 R2 box. Your GPO fix worked flawlessly!

      Reply
      • Eswar Koneti on January 4, 2017 10:30 AM

        Hi Dominik,
        Glad it helped.

        Regards,
        Eswar

        Reply
    6. Hanson on September 14, 2016 7:36 PM

      I had the same issue and your post helps me fix it. Thank you very much!

      Reply
    7. Ashish Grover on September 2, 2016 12:44 AM

      Unfortunately it did not work for me. Moreover, there was no AD group policy which was conflicting or overwriting 'Logon as a service' policy setting. Installation used to fail and system rolls back after reboot.

      Finally, We had to add everyone to logon as a service. Started Installation - Installation Successful.
      Reboot server (optional)
      Edit the policy, Add NT SERVICE\MSSQL$MICROSOFT##WID
      Remove Everyone

      Proceed with Post Installation configuration.

      Reply
    8. southerus on November 29, 2015 1:09 AM

      Thank you so much for this! I really, really appreciate folks like yourself who take the time to publish things like this to help others who do not have this knowledge yet. This fix worked for me.

      Reply
      • Eswar Koneti on November 29, 2015 8:38 AM

        thanks for your kind words, happy to help.

        Reply
    9. naz on September 11, 2015 4:44 AM

      You can add the NT SERVICE\MSSQL$MICROSOFT##WID instead of ALL SERVICES on server 2012r2 and it works fine.

      Reply
      • Eswar Koneti on September 11, 2015 8:01 PM

        yep, but haven't tried that ,thanks Naz.

        Reply
    10. Brain2000 on August 13, 2015 5:34 AM

      What are the security risks (if any) to adding "NT SERVICE\ALL SERVICES" to "Log In As Service" right?

      Reply
      • Eswar Koneti on August 19, 2015 3:25 PM

        AFAIK,i dont see any kind of security risks or may be there would be some but i may not aware about what it is. You can better contact the AD guys who manages this using GPO or have a read this post on this account https://social.technet.microsoft.com/Forums/office/en-US/422a4672-a713-47ef-b228-1563861931e8/gpo-and-service-sid?forum=winserverGP and https://stephenhirst.azurewebsites.net/?p=6042

        Reply
    11. SN on October 23, 2014 10:19 PM

      +1 for Chris K's comment, works perfectly for me and my environment whereas I could not add the accounts to the GPO due to company policies.

      Reply
    12. Chris K on October 17, 2014 9:56 PM

      In my environment I wished to install WSUS using SQL server, no need for WID. However, the add roles wizard insisted on installing WID, even after I unchecked WID and selected SQL. I attempted to add NT SERVICE\ALL SERVICES to GPO but as Jason mentioned, I was unable to do so. I followed the instructions below to install WSUS specifying SQL server using powershell without the need for WID or adding virtual accounts to logon as service. Just thought I would share what I found to work around this issue.

      http://blogs.technet.com/b/heyscriptingguy/archive/2013/04/15/installing-wsus-on-windows-server-2012.aspx

      Reply
      • Eswar Koneti on October 24, 2014 3:39 PM

        thanks for contributing your solution to the public. I have updated the blog post with your link.

        Reply
    13. Jason on June 26, 2014 11:15 PM

      You missed one point that is important. The reason You need to Assign the Log on as a service user right to NT SERVICE\ALL SERVICES. A lot of companies have the ‘Log on as a service GPO’ right locked down to prevent ‘Domain Service & Domain User Accounts from being automatically added. But isn’t “NT SERVICE\MSSQL$MICROSOFT##WID” the actual account in question? Yes, it is but it’s a ‘Virtual Account’ and unfortunately you cannot add virtual accounts in a GPO because well – they’re virtual. When the ‘Log on as a Service’ GPO is not enabled, all services are allowed to ‘Log on as a Service’ and thus the Feature can be added without error.

      Reply
      • Eswar Koneti on July 7, 2014 7:32 PM

        I do agreee but there is another fix for this issue --you just need to uncheck the feature of installing Windows internal database .You really do not require the windows internal Database for wsus here.

        Reply
        • Ashish Grover on September 2, 2016 12:46 AM

          Not installing windows internal database and use SQL database did not work for me either. System still installed Windows internal Database service.

          Reply
          • Eswar Koneti on September 4, 2016 10:18 AM

            Have you tried the settings what is suggested? Did you uncheck wid database

            Reply
          • Eswar Koneti on September 8, 2016 7:34 PM

            Have you tried the settings what is suggested? Did you uncheck wid database and select no during the prompt.
            Regards
            Eswar

            Reply
          • Eswar Koneti on September 8, 2016 7:36 PM

            Did you de selecting the internal database as shown the blog and select No during the prompt?

            Regards
            Eswar

            Reply
    14. Pingback: Server 2012 R2 Wsus Kurulum hatası.

    15. Pingback: WSUS Role Installation Fails on Windows Server 2012 R2 | MacGyverIT

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.