Using the WpdDeviceInspector Tool

The WpdDeviceInspector tool is a console application that generates a comprehensive HTML report. This report describes three categories of device and driver information, which are listed in the following table.

Installation InformationSpecifies device and driver data that is used by the Windows installer.
Device CapabilitiesIdentifies commands, objects, content types, formats, and events that are supported by the device.
Device ContentLists object identifier strings and the corresponding Persistent Unique Object Identifier (PUID) values.


Viewing the Command-Line Options for WpdDeviceInspector

To view the command-line options for WpdDeviceInspector.exe, type the following command at the command prompt:

WpdDeviceInspector.exe /?

Generating a Report for a Specific Device

You can generate a report for a particular device by running WpdDeviceInspector.exe without any parameters, and entering the index for the selected device.

> WpdDeviceInspector.exe

1 Windows Portable Device(s) found on the system

[0]     Dev Interface: \\?\root#wpd#0001#{6ac27878-a6fa-4155-ba85-f98f491d4f33}
        Friendly Name: Hello World!
        Manufacturer:  Windows Portable Devices Group
        Description:   Hello World!

Enter the index of the device you want to Inspect.

Alternatively, if you know the device identifier, you can tellWpdDeviceInspector.exe to always generate a report for that device by typing the device identifier directly after the /Device switch at the command prompt:

WpdDeviceInspector.exe /Device:\\?\root#wpd#0000#{6ac27878-a6fa-4155-ba85-f98f491d4f33}

The device identifier is listed under the Dev Interfaceentry for each device when you launch WpdDeviceInspector.exe without any parameters.

Operating WpdDeviceInspector in Snapshot Mode

You can operate WpdDeviceInspector.exe in snapshot mode and capture a directory structure that mirrors the object hierarchy on a given device. When the tool operates in snapshot mode, it creates .opt files in each folder in which it stores the given object's properties and attributes.

In snapshot mode, the binary resources are saved to files that are named for the resource key ( These files can be renamed and opened as appropriate. For example, the default resource for a JPEG image would be saved to {E81E79BE-34F0-41BF-B53F-F1A06AE87842}.0, but could easily be renamed to device_image.jpg so that the image could be viewed in a graphics tool.

To operate in snapshot mode, use the /Snapshot switch at the command prompt:

WpdDeviceInspector.exe /Snapshot

Operating WpdDeviceInspector in WPD Automation Mode

You can operate WpdDeviceInspector.exe to dump the JScript properties and methods of a given device. This is useful when you are using WPD Automation to access a WPD device from a Device Stage™ HostedSiteWithDevice task. For more information about authoring Device Stage™ tasks for WPD devices, see the Windows Device Experience Portal. This feature is only available in Windows 7.

To operate in WPD Automation mode, use the /Automation switch at the command prompt:

WpdDeviceInspector.exe /Automation



Send comments about this topic to Microsoft