Overview
Windows services can be configured with recovery actions that execute when the service fails. If you can modify a service’s recovery settings, you can make it run arbitrary commands as SYSTEM on failure.Check Current Recovery Config
Recovery Action Types
Exploit — Set Recovery to Run Command
Requirements
SERVICE_CHANGE_CONFIGpermission on the service- Or membership in a group that can manage the service