Device PnP (Interface & PowerShell)

The Device PnP interface is the administrative gateway to the machine's hardware history. While the Registry stores the raw data, the PnP interface (queried via PowerShell or Device Manager) provides a processed, human-readable view of every peripheral that has ever interacted with the system kernel.

General

Technically, when you query PnP devices, you are interacting with the Configuration Manager APIs and the Win32_PnPEntity WMI class. This system was designed to allow the OS to maintain "Device Persistence." Microsoft implemented this so that hardware configurations (like COM port assignments or specialized USB settings) remain static even if the device is unplugged and moved to a different physical port. This persistence is what creates the "historical" trail that forensics can exploit long after the physical evidence has been removed.

Traces

In PowerShell, these historical traces are accessed using Get-PnpDevice. Unlike the standard GUI, PowerShell allows you to filter specifically for disconnected devices that are still registered in the system state.

Forensic Use Cases

Using the PnP interface via PowerShell allows for rapid, automated forensic auditing of "ghost" hardware: