Event ID 4103: Module logging / pipeline execution details
Written by PowerShell module logging. Records pipeline invocations and their parameters as commands run, along with the invoking user and host context.
- Channel
- Microsoft-Windows-PowerShell/Operational
- Logged by default
- No
- Written on
- Any host
- Volume
- High
- Provider
- Microsoft-Windows-PowerShell
- Needs a SACL
- No
To have this event
- GPO: Administrative Templates > Windows Components > Windows PowerShell > Turn on Module Logging, with module names = *
- Registry: HKLM\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ModuleLogging\EnableModuleLogging = 1
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| Payload | The command and parameter details being logged, including parameter binding for each pipeline stage |
| ContextInfo | Host context block: severity, host name, host version, running user, shell ID and the command name/type |
| UserId | Account that ran the pipeline, in DOMAIN\user form |
Analyst notes
- 01Module logging captures how cmdlets were called (parameters and pipeline flow), which complements script block logging (4104) that captures the raw code.
- 02Requires module logging to be enabled, ideally with module names set to * for full coverage; without it, 4103 is sparse.
- 03High volume when fully enabled. Prioritise unusual modules and parameter values over sheer count.
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=4103)]]" -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.
Related events
Common questions
- What does Windows event ID 4103 mean?
- Written by PowerShell module logging. Records pipeline invocations and their parameters as commands run, along with the invoking user and host context. It is written to the PowerShell Operational log (Microsoft-Windows-PowerShell/Operational).
- Is event 4103 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 4103 recorded?
- In the Microsoft-Windows-PowerShell/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten by PowerShell module logging. Records pipeline invocations and their parameters as commands run, along with the invoking user and host context. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.