Event ID 4106 — Completed invocation of ScriptBlock ID: ScriptBlockId.
Description
Completed invocation of ScriptBlock ID: ScriptBlockId.
Message #
Fields #
| Name | Description |
|---|---|
ScriptBlockId UnicodeString | Completed invocation of ScriptBlock ID. |
RunspaceId UnicodeString | — |
Example Event #
{
"system": {
"provider": "Microsoft-Windows-PowerShell",
"guid": "A0C1853B-5C40-4B15-8766-3CF1C58F985A",
"event_source_name": "",
"event_id": 4106,
"version": 1,
"level": 5,
"task": 103,
"opcode": 15,
"keywords": 0,
"time_created": "2023-11-06T01:35:05.993908+00:00",
"event_record_id": 905,
"correlation": {
"ActivityID": "E4DB489E-1037-0002-FB44-ECE43710DA01"
},
"execution": {
"process_id": 15468,
"thread_id": 15184
},
"channel": "Microsoft-Windows-PowerShell/Operational",
"computer": "WinDev2310Eval",
"security": {
"user_id": "S-1-5-21-1992711665-1655669231-58201500-1000"
}
},
"event_data": {
"ScriptBlockId": "6baf0dc7-a83f-43e1-bb6a-d7ab8d05eeb0",
"RunspaceId": "6fa4bb48-d600-4d4b-b445-e1fa0a41db53"
},
"message": ""
}
References #
- Microsoft Learn https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows
- Example event sourced from https://github.com/NextronSystems/evtx-baseline