Restrict User to change state of Windows Service

Hi All,

I want to restrict end user to change state of window Service (from running to Stop).
I have explored in windows kernel but can't get anything concrete.
I have already tried "ObRegisterCallbacks", but it do not work for windows service.

Any input will be appreciable.

TIA.

Probably this is what you are looking for

1 Like

Modifying the DACL for a Service - Win32 apps | Microsoft Learn

1 Like

Thanks Scott and MBond for the input, I will explore it.
Regards