Event ID 1074, 6005 and 6006: who restarted or shut down the computer
Event ID 1074 is written to the System log by User32 when a program asks Windows to restart or shut down, naming the program, the account it ran as, the reason and the type of shutdown; events 6006 ("The Event log service was stopped") and 6005 ("The Event log service was started") then mark the clean stop and the next start.
What event 1074 records
Every deliberate restart or shutdown goes through a program: Start menu power options, shutdown.exe, Windows Update, an installer, a management agent or a script. Microsoft notes that 1074 is "logged when an application is responsible for the system shutdown or restart", with the user and any custom message and reason code. Its message reads like: "The process C:\Windows\System32\shutdown.exe (HOST) has initiated the restart of computer HOST on behalf of user DOMAIN\user for the following reason: …".
| Part of the event | In Arcsentry | What it tells you |
|---|---|---|
| Process (and computer) | $param1 | The program that requested the shutdown |
| Computer | $param2 | The computer being shut down (it can be a remote one) |
| Reason | $param3 | The reason text, such as "Operating System: Upgrade (Planned)" |
| Reason code | $param4 | The numeric reason code |
| Shutdown type | $param5 | restart or power off |
| Comment | $param6 | Free text passed with shutdown /c |
| User | $param7 | The account on whose behalf it ran |
Clean, requested and unexpected shutdowns
| Sequence in the System log | Meaning |
|---|---|
| 1074, then 6006, then (at the next start) 6005 | A requested, clean shutdown or restart |
| 6006 then 6005 with no 1074 | A clean shutdown not attributed to a program, for example from the logon screen |
| 41 and 6008 at the next start, with no 6006 | An unexpected stop: crash, power loss or forced power-off |
Two more events help at the next start: 6009 records the Windows version at boot, and 6013 reports the system uptime once a day, which makes it easy to spot when a computer was last restarted.
Restarts in an investigation
- Attacker restarts. A restart can activate persistence, finish a driver installation, or boot into safe mode, where many security tools do not run. Ransomware has used
bcdeditto force safe mode and then restarted the host. A 1074 fromshutdown.exeor a script host, under an account that does not normally restart this computer, during an incident window, needs explaining. - Remote shutdowns.
shutdown /m \\hostrestarts another computer; the 1074 on the target names the requesting program and account, and the network logon that carried it appears in 4624. - Lost evidence. Every restart clears memory and running state. Note restarts during the incident so that missing volatile evidence is explained.
- Timeline boundaries. The 6006 and 6005 pair brackets downtime; nothing on the host can have happened between them.
Event 1074 fields
The fields an investigator reads first, what they mean, and where Arcsentry stores them.
| Field | Meaning | Arcsentry field |
|---|---|---|
| Process | The program that requested the shutdown, with the computer name. | $param1 |
| Reason and reason code | Text and numeric reason chosen by the program or user. | $param3, $param4 |
| Shutdown type | restart or power off. | $param5 |
| Comment | Optional free text. | $param6 |
| User | The account on whose behalf the shutdown was requested. | $param7 |
Event 1074 stores its details as positional parameters, which Arcsentry keeps by position ($param1 to $param7). 6005 and 6006 have no fields.
What event 1074 proves, and what it does not
It shows
- That this program, on behalf of this account, requested a restart or shutdown for this reason at this time.
- With a following 6006, that the shutdown was clean.
It does not show
- That the person behind the account chose to restart; software restarts on behalf of SYSTEM too.
- Why the program was run; check process creation and the parent process.
Attacker activity it reveals
Forcing safe mode
Setting the boot configuration to safe mode, then restarting, so that ransomware runs without security tools. MITRE ATT&CK T1529
Activating persistence
A restart shortly after a new service or Run key, to start it as the system comes up.
Remote restarts
Restarting other hosts with shutdown /m, recorded on each target with the requesting account. MITRE ATT&CK T1529
In a real investigation: Halden Freight office intrusion
On HF-WS01 the System log shows the clean sequence before the intrusion began: at 22:01:11 UTC a 1074 from CloudExperienceHostBroker.exe requested a restart for "Operating System: Reconfiguration (Unplanned)" on behalf of NT AUTHORITY\SYSTEM (the end of Windows setup), followed by 6006 at 22:01:23 and 6005 at 22:01:32. The attacker's first failed logon came at 22:02:58. Knowing the host had restarted less than two minutes before the intrusion matters: everything in memory before 22:01:23 was gone, and every artifact from that point on belongs to a fresh boot.
Finding event 1074 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 ("1074", "6005", "6006", "6008", "41")
derive {proc = $param1, reason = $param3, kind = $param5, user = $param7}
select {timestamp, event_code, proc, reason, kind, user}
sort {timestamp} Every requested, clean and unexpected shutdown in order, with the program, reason and account for the requested ones.
Or ask in plain English, for example "show event 1074 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 41: Unexpected shutdown (Kernel-Power)
- Event ID 4624: Successful logon
- Event ID 7045: Service installed
- Event ID 4688: Process created
- Event ID 104: Log cleared (System log)
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 1074 mean?
A program requested a restart or shutdown. The System log records the program, the computer, the reason and reason code, the shutdown type, an optional comment and the account it ran on behalf of.
How do I find out who restarted a Windows computer?
Look for event 1074 in the System log just before the restart. It names the program (for example shutdown.exe or Windows Update) and the user account. A clean stop then shows 6006 and the next start 6005.
What are event IDs 6005 and 6006?
6005 means the event log service started, which happens at boot. 6006 means it stopped, which happens at a clean shutdown. An unexpected stop shows 6008 and Kernel-Power 41 instead of 6006.
Sources
- Microsoft Learn: Advanced troubleshooting for Event ID 41 (details of events 1074, 6006 and 6008)
- MITRE ATT&CK: T1529 System Shutdown/Reboot
- Venema Labs lab case: Halden Freight office intrusion, HF-WS01 System log
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 1074 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