Event ID 7036 and 7040: service state and start type changes
Event ID 7036 ("The [service] service entered the [running or stopped] state") and 7040 ("The start type of the [service] service was changed from [old] to [new]") are written to the System log by the Service Control Manager when a service changes state or someone changes how it starts.
What events 7036 and 7040 record
7036 records a service starting or stopping. 7040 records a change to its start type: boot, system, auto start, demand (manual) start, or disabled. Together with 7045 (installed) and 7034 and 7031 (crashed), they cover a service's life in the System log, which needs no audit policy.
For 7040, Arcsentry keeps the message parameters by position: $param1 is the service's display name, $param2 the old start type, $param3 the new one, and $param4 the service's key name.
What normal looks like
Windows changes service start types constantly. In our Halden Freight lab case, each Windows 11 workstation logged 21 to 23 events 7040 in a few hours, all from Windows itself: Windows Modules Installer and the Background Intelligent Transfer Service switching between auto and demand start around updates, and IsolationSession flipping every few minutes. The same hosts logged no 7036 events at all over the collection period, so do not rely on 7036 being present on current Windows: check whether a host writes it before treating its absence as meaningful.
Baseline these before reading anything into them. The changes that matter are to services you care about, made outside update activity.
What attackers change
| Change | Purpose |
|---|---|
| Security service set to disabled (7040), then stopped (7036) | Turn off antivirus, EDR, Sysmon or logging before acting |
| Volume Shadow Copy or backup services disabled | Prevent recovery before ransomware encryption |
| Event Log or Windows Defender services stopped | Stop recording |
| Remote Registry, WinRM or Remote Desktop set to auto start | Open remote access for later |
| A service of the attacker's set from demand to auto start | Make persistence survive reboots |
Pair each change with the command that made it: sc config, Set-Service or a registry write appear in process creation (4688) or PowerShell logs (4104) at the same second, with the account that ran them.
Event 7036 fields
The fields an investigator reads first, what they mean, and where Arcsentry stores them.
| Field | Meaning | Arcsentry field |
|---|---|---|
| Service display name | The service, as shown in the Services console. | $param1 |
| Old and new start type (7040) | For example demand start to auto start, or auto start to disabled. | $param2, $param3 |
| Service key name (7040) | The service's name in the registry, such as BITS or TrustedInstaller. | $param4 |
What event 7036 proves, and what it does not
It shows
- That this service started, stopped (7036) or had its start type changed (7040) at this time.
It does not show
- Who made the change. The events carry no account; correlate with process creation and PowerShell logs.
- That nothing happened when 7036 is absent; current Windows may not write it.
Attacker activity it reveals
Disabling defences
Security services set to disabled and stopped, usually with sc.exe or PowerShell, shortly before the attacker's main activity. MITRE ATT&CK T1562.001
Stopping services before ransomware
Backup, database and shadow copy services stopped so their files can be encrypted and recovery is harder. MITRE ATT&CK T1489
Opening remote access
Remote management services switched to auto start for later use.
In a real investigation: Halden Freight office intrusion
During the intrusion on HF-WS01, between 22:02 and 22:14 UTC, the System log recorded 7040 changes only for Windows components (Windows Modules Installer, BITS, IsolationSession, Device Association Service). The attacker's service, HF Update Service, was created as auto start from the outset with sc.exe create at 22:10:02, so it produced a 7045 but no 7040. Knowing the normal 7040 traffic on a host is what lets an investigator say that no security service was switched off.
Finding event 7036 in Arcsentry
Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. System log records are the event type evtx_system. In Hunt, with that event type selected:
filter event_code in ("7040", "7036")
derive {svc = $param1, was = $param2, now = $param3, key = $param4}
group {key, was, now} (aggregate {n = count this, first_seen = (earliest timestamp)})
sort {n} Each kind of service change once, rarest first. Windows' own changes repeat many times; a single change to a security or backup service stands out at the top.
Or ask in plain English, for example "show event 7036 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.
Related event IDs
- Event ID 7045: Service installed
- Event ID 7034: Service crashed (7034, 7031)
- Event ID 4697: Service installed (Security log)
- Event ID 4688: Process created
- Event ID 4104: PowerShell script block
All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.
Frequently asked
What does event ID 7036 mean?
A Windows service entered the running or stopped state. It is written by the Service Control Manager to the System log.
What does event ID 7040 mean?
The start type of a Windows service was changed, for example from demand start to auto start, or to disabled. The event names the service and the old and new start types, but not who changed it.
Why don't I see event 7036 on Windows 11?
Current Windows versions may log far fewer service state changes than older ones. In our Windows 11 lab hosts there were none over a whole collection period, while 7040 and 7045 were present.
Sources
- Microsoft: Service Control Manager event messages (7036, 7040)
- MITRE ATT&CK: T1562.001 Disable or Modify Tools; T1489 Service Stop
- Venema Labs lab case: Halden Freight office intrusion, HF-WS01 and HF-WS02 System logs
Checked 2 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.
Find event 7036 across every host in minutes.
Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.
Request a trial