94.0k views
5 votes
How to disable interactive logon for service accounts

User TimonWang
by
8.2k points

1 Answer

3 votes

Final answer:

To disable interactive logon for service accounts, open the Local Security Policy editor, navigate to User Rights Assignment, find the 'Deny log on locally' policy, add the service account, and save the changes.

Step-by-step explanation:

To disable interactive logon for service accounts, follow these steps: Open the Local Security Policy editor by pressing Win+R, typing 'secpol.msc', and hitting Enter.In the left pane, navigate to Security Settings -> Local Policies -> User Rights Assignment.In the right pane, find the 'Deny log on locally' policy and double-click it. Click the 'Add User or Group' button, enter the name of the service account you want to disable interactive logon for, and click 'OK'.

Click 'Apply' and 'OK' to save the changes.

By following these steps, you can prevent service accounts from logging on interactively. To disable interactive logon for service accounts, you can use the Group Policy Editor or edit the registry, with the former being a safer option for most users. Care must be taken to accurately add the service accounts to the 'Deny log on locally' policy or the registry's 'DenyLogonLocally' entry, respectively.

User Moode Osman
by
7.7k points