how to add "NT SERVICE\ALL SERVICES" back to the "Log on as a service" permission

RR 21 Reputation points
2022-08-24T18:59:09.14+00:00

How can I add "NT SERVICE\ALL SERVICES" back to the "Log on as a service" permission? By default it is the only thing in "Log on as a service". It can be removed, but not added back with the local group policy editor. I have an image created by someone else with different stuff in that permission and not having NT SERVICE\ALL SERVICES appears to be creating trouble for an application installer. This is Windows Server 2019.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,405 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-08-24T19:46:15.047+00:00

    Give this one a try.
    https://www.codykonior.com/2015/11/16/rebuilding-the-log-on-as-a-service-list-after-it-has-been-overwritten-by-group-policy/

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-08-24T19:12:29.207+00:00

  2. Kamen-Kirov 0 Reputation points
    2024-11-23T19:14:25.34+00:00

    First prepare the configuration file in cmd -> secedit /export /cfg C:\secpol.cfg

    Open the secpol.cfg file in a text editor and add the following line under the [Privilege Rights] section to ensure "NT SERVICE\ALL SERVICES" has the "SeServiceLogonRight" permission: SeServiceLogonRight = NT SERVICE\ALL SERVICES

    run the following command in cmd:

    secedit /configure /db secedit.sdb /cfg C:\secpol.cfg /overwrite

    restart the computer

    0 comments No comments

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.