Trying to audit which AD-user who actually restart a service on a particular service.
The service (MyService) is using a serviceaccount to run and get access to different resources.
I want to audit when my user or any actual human user manually start / stop / restart the service and to be able to get that information in an "Event" in EventViewer to later setup an alert or filtered view to see who and when modified the service running state.
I found these instructions which seem well-detailed:
https://support.qlik.com/articles/000058520
On the server (Windows Server 2019) itself (i.e. not through a GPO):
MMC > Security Templates > C:\Users$USER\Documents\Security\Templates
1.1 "New Template" > "MyServiceSecurityTemplate"
1.2 "MyServiceSecurityTemplate" > "System Services" > "MyService" > "Properties"
1.3
"Define this policy setting in the template" = Checked
"Select service startup mode: Automatic"
^ I.e. the service should always start with the server so we just control how the service start OR does it relate to which service startup events it logs?
I.e. that it only logs when the service it started automatically and NOT when it is stopped / started / restarted manually?
1.4 "Edit Security" > "Advanced" > "Auditing" > "Add" >
"Principal: "
"Type: Success"
"Basic Permissions: Start, stop and pause"
"OK" > "Apply" > "OK"> "Apply" > "OK" > "OK" > Prompt:
"Security Policy. You are about to change the security setting for this service... Do you want to continue?" >
"Yes" > "Apply" > "OK"Local Group Policy Editor > Computer Configuration > Windows Settings > Security Settings > Advanced Audit Policy Configuration > System Audit Policies - Local Group Policy Object > Object Acces:
"Audit Handle Manipulation" and "Audit Other Objects Access Events" > "Properties"
"Configure the selected events to be audited:
Audit all success" > "Apply" > "OK"EventViewer > Windows Logs > Security:
Filter for EventID 4656
No events found for that filter....
Why is that?