Skip to content
WETNav
PowerShellScript Execution

Event ID 40961: PowerShell console is starting up

Written when the PowerShell engine begins initialising a console host. Marks the start of a PowerShell session.

Channel
Microsoft-Windows-PowerShell/Operational
Logged by default
Yes
Written on
Any host
Volume
Moderate
Provider
Microsoft-Windows-PowerShell
Needs a SACL
No

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

param1Engine/host startup detail recorded as the console initialises
Have one of these events? Paste it into the decoder

Analyst notes

  • 0140961 then 40962 bracket the startup of a PowerShell host; a burst of them can indicate scripted or repeated PowerShell launches.
  • 02Does not record the command line; join to 4104/4103 and to 4688/Sysmon 1 for what actually ran and how it was launched.

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational' -FilterXPath "*[System[(EventID=40961)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 40961 mean?
Written when the PowerShell engine begins initialising a console host. Marks the start of a PowerShell session. It is written to the PowerShell Operational log (Microsoft-Windows-PowerShell/Operational).
Is event 40961 logged by default?
Yes, a default Windows installation records it.
Where is event 40961 recorded?
In the Microsoft-Windows-PowerShell/Operational channel on the any host.

Written when the PowerShell engine begins initialising a console host. Marks the start of a PowerShell session. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.