Where is the documentation for the Microsoft-Windows-DriverFrameworks-UserMode/Operational Log?

Ibrahim, Kariem 0 Reputation points
2026-11-20T01:16:11.9766667+00:00

I have been looking everywhere for a guide on this log that explains the OPcodes and their meanings. I need to figure out which events are connections and which are disconnections as I am trying to troubleshoot why certain devices in my environment can't connect properly. For Example, a line in the log will read:
Received a Pnp or Power operation (27, 9) for device USB\VID_17E9&PID_6015&MI_01\7&34BBCC50&0&0001 with a task of 37 and an opcode of 1

what do the 27,9,37, and 1 mean? is there a way to narrow this list down to specific connections and disconnections of this device?

Windows for business | Windows 365 Business
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-20T01:18:38.8466667+00:00

    The sample (27, 9) decodes to IRP_MJ_PNP with IRP_MN_QUERY_CAPABILITIES, so it represents a Plug and Play capabilities query—not a device connection or disconnection.

    Meaning of the values

    • 27 decimal (0x1B) — the WDM major function IRP_MJ_PNP. PnP requests consist of a major function plus a minor function identifying the requested operation.^1^
    • 9 decimal (0x09) — the PnP minor function IRP_MN_QUERY_CAPABILITIES. The documented PnP minor-function table is the appropriate reference for decoding this part of the payload.^2^
    • Task 37 — a provider-defined grouping value. Tasks can represent any component or operation chosen by the event provider; their numeric values are not universal.^3^
    • Opcode 1 — the standard ETW Start opcode, meaning the beginning of an ETW activity. It does not mean that the physical device was connected.^4^

    Therefore, this event says approximately:

    UMDF started processing a PnP request that queries the capabilities of the specified device.

    It is normal lifecycle activity and does not, by itself, identify why the device failed to connect.

    Retrieve the schema installed on that Windows build

    The installed provider metadata is the best source for that system’s event IDs, templates, field names, task labels, opcodes, and message text. Run the following from an elevated Command Prompt on a machine where the provider and matching message resources are installed:

    wevtutil gp Microsoft-Windows-DriverFrameworks-UserMode /ge:true /gm:true /f:xml > "%TEMP%\UMDF-provider.xml"
    
    wevtutil qe "Microsoft-Windows-DriverFrameworks-UserMode/Operational" /rd:true /c:20 /f:xml > "%TEMP%\UMDF-events.xml"
    

    wevtutil gp retrieves publisher metadata, while qe queries events.^5^ Provider metadata maps numeric task and opcode values to the names or message strings supplied by the provider.^6^

    The metadata can expose the event template and its field names, but it might not translate payload enum values such as 27 and 9; those must be interpreted against the applicable driver IRP definitions. If message resources are unavailable, rendered Message values can be empty or unresolved, so inspect the event XML directly.

    Narrow the log to this device

    The string beginning with USB\VID_17E9... is the device instance ID, which identifies a particular device node and persists across restarts.^7^

    First constrain by time and search the event XML, while displaying the Event ID before Task and Opcode:

    $log = 'Microsoft-Windows-DriverFrameworks-UserMode/Operational'
    $id  = 'USB\VID_17E9&PID_6015&MI_01\7&34BBCC50&0&0001'
    $start = (Get-Date).AddHours(-2)
    
    Get-WinEvent -FilterHashtable @{LogName=$log; StartTime=$start} |
        Where-Object { $_.ToXml() -like "*$id*" } |
        Select-Object TimeCreated, Id, Task, OpcodeDisplayName,
            @{n='Opcode';e={$_.Opcode}},
            @{n='XML';e={$_.ToXml()}}
    

    Open one matching event’s XML and note the <Data Name="..."> field containing the instance ID. Once its exact name is known, use an indexed XPath query instead of scanning rendered messages:

    $log = 'Microsoft-Windows-DriverFrameworks-UserMode/Operational'
    $xpath = "*[EventData[Data[@Name='DeviceInstanceId']=" +
             "'USB\VID_17E9&PID_6015&MI_01\7&34BBCC50&0&0001']]"
    
    Get-WinEvent -LogName $log -FilterXPath $xpath |
        Select-Object TimeCreated, Id, Task, OpcodeDisplayName
    

    Replace DeviceInstanceId with the exact field name found in that event’s XML. Windows Event Log supports filtering through XPath and Get-WinEvent -FilterXPath can be used to test the query locally.^8^

    Identify removal and arrival sequences

    For disconnection analysis, look for the same instance ID around these PnP operations:

    • IRP_MN_QUERY_REMOVE_DEVICE — orderly removal is being requested.
    • IRP_MN_SURPRISE_REMOVAL — the device disappeared without orderly removal.
    • IRP_MN_REMOVE_DEVICE — Windows is removing the device’s software representation.^9^

    IRP_MN_REMOVE_DEVICE is not absolute proof of a physical unplug: Windows can also issue it after a failed start or during a driver update.

    There is no equivalent single UMDF opcode that universally means “USB connected.” Arrival is generally established by correlating:

    1. The first appearance of the device instance ID.
    2. Enumeration/start and hardware-preparation events.
    3. Nearby Kernel-PnP events in Event Viewer → Windows Logs → System.
    4. Any UMDF failure events at the same timestamp, particularly 10110, 10111, or 10112, which indicate host failure or a device going offline.^10^

    References

    1. IRP_MJ_PNP
    2. Plug and Play Minor IRPs
    3. EVENT_DESCRIPTOR structure (evntprov.h)
    4. OpcodeType Complex Type
    5. wevtutil
    6. Getting Provider Metadata
    7. Device instance ID
    8. Collect Windows events from virtual machine with Azure Monitor
    9. IRP_MN_REMOVE_DEVICE
    10. How UMDF Handles Driver Failures
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. MUCYO Emmanuel 320 Reputation points Independent Advisor
    2026-11-20T05:57:04.2566667+00:00

    Hello Ibrahim,

    There is no single comprehensive Microsoft reference that documents every event, Task value, Opcode, and message in the Microsoft-Windows-DriverFrameworks-UserMode/Operational log. The Windows Driver Kit (WDK) and ETW documentation are useful references for understanding driver events.

    In your example, (27, 9) represents the PnP request codes:

    • 27 – IRP_MJ_PNP (Plug and Play request)

    9 – IRP_MN_QUERY_CAPABILITIES (request to query device capabilities)

    This means Windows is querying the device's capabilities, not necessarily connecting or disconnecting it.

    The meanings of Task 37 and Opcode 1 cannot be reliably confirmed from this message alone. They need to be checked against the event provider's definitions.

    For tracking the device's connection and removal activity, I would recommend checking the following logs:

    Microsoft-Windows-Kernel-PnP/Configuration – Review device-related events and filter by the device instance ID.

    Microsoft-Windows-DriverFrameworks-UserMode/Operational – Useful for investigating driver activity, but not every event represents a physical connection or disconnection.

    You can also use USB ETW tracing to get more detailed information about device enumeration and start operations.

    Microsoft's guide explains how to use USB ETW events to investigate device enumeration and device start failures:

    Debugging USB device issues by using ETW events

    I hope this helps you narrow down the device activity and troubleshoot the connection issue.Hello,

    There is no single comprehensive Microsoft reference that documents every event, Task value, Opcode, and message in the Microsoft-Windows-DriverFrameworks-UserMode/Operational log. The Windows Driver Kit (WDK) and ETW documentation are useful references for understanding driver events.

    In your example, (27, 9) represents the PnP request codes:

    27 – IRP_MJ_PNP (Plug and Play request)

    9 – IRP_MN_QUERY_CAPABILITIES (request to query device capabilities)

    This means Windows is querying the device's capabilities, not necessarily connecting or disconnecting it.

    The meanings of Task 37 and Opcode 1 cannot be reliably confirmed from this message alone. They need to be checked against the event provider's definitions.

    For tracking the device's connection and removal activity, I would recommend checking the following logs:

    Microsoft-Windows-Kernel-PnP/Configuration – Review device-related events and filter by the device instance ID.

    Microsoft-Windows-DriverFrameworks-UserMode/Operational – Useful for investigating driver activity, but not every event represents a physical connection or disconnection.

    You can also use USB ETW tracing to get more detailed information about device enumeration and start operations.

    Microsoft's guide explains how to use USB ETW events to investigate device enumeration and device start failures:

    Debugging USB device issues by using ETW events

    I hope this helps you narrow down the device activity and troubleshoot the connection issue.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.