Académique Documents
Professionnel Documents
Culture Documents
Disclaimer: This document is provided as-is. Information and views expressed in this document, including
URL and other Internet website references, may change without notice. Some information relates to prereleased product which may be substantially modified before its commercially released. Microsoft makes no
warranties, express or implied, with respect to the information provided here. You bear the risk of using it.
Some examples depicted herein are provided for illustration only and are fictitious. No real association or
connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any Microsoft
product. You may copy and use this document for your internal, reference purposes.
2012 Microsoft. All rights reserved.
Document History
Date
Change
September 28,
2012
April 9, 2012
February 28,
2012
January 22,
2010
July 1, 2009
June 1, 2009
November 5,
2008
Contents
Device Metadata Package Installation................................................4
Add Metadata Packages to Offline Windows Image.........................4
Install Metadata Packages on a Running Instance of Windows........4
Install Metadata Package from the WMIS Server.........................4
Install Metadata Packages by Using an Application.....................5
Install Metadata Packages by Using an INF File in a Driver
Package....................................................................................... 5
Apply the device metadata package to your system for testing.........6
Signature of the device metadata package and test mode................7
How the DMRC Selects a Device Metadata Package...........................7
How the DMRC Determines Whether to Search the WMIS Server.....10
Best Practices for Testing Download of Device Metadata
Packages.................................................................................... 12
Device Metadata Package Installation Debug...................................12
Check whether the device metadata package is installed or not.. 12
Debug the device container properties by Using Ddodiag.exe......13
Run Ddodiag.exe........................................................................13
Debug by Using Event Tracing for Windows (ETW) in Windows 7. .14
View Device Metadata/Debug ETW Events in Event Viewer.......14
Device Metadata/Debug ETW Events.........................................15
September 28, 2012
2012 Microsoft Corporation. All rights reserved.
All three ways use the same background processes and copy the
metadata packages to the local metadata store.
Remarks:
system into test mode. To put your PC into test mode, follow these
steps:
1. Open a command prompt with elevated access.
2. Run bcdedit -set testsigning on.
3. Reboot the system.
You will see Test Mode in desktop when your PC is in test mode.
<HardwareID>DOID:USB\VID_XXXX&PID_YYYY&REV_0000</HardwareID>
<HardwareID>DOID:USB\VID_XXXX&PID_YYYY</HardwareID>
Figure 2. How the DMRC determines whether to query the WMIS server for a
device metadata package
The following list describes the values that are used in the
algorithms in Figure 2:
LastCheckedDate
This value indicates the most recent date when the DMRC queried
the WMIS server for metadata for a device. This date does not
reflect whether the DMRC successfully retrieved a metadata
package; it only indicates the last time that the DMRC queried the
WMIS server on behalf of the device.
CheckBackMDNotRetrieved
This registry value indicates the number of days that the DMRC
waits before it rechecks the WMIS server for metadata for a
device. This value applies to devices for which the DMRC has not
yet retrieved metadata from WMIS.
Path
Key
Value
Default
Value
HKCU\Software\Microsoft\Windows\CurrentVersion\Dev
iceMetadata
CheckBackMDNotRetrieved
0 to 256: REG_DWORD
5
CheckBackMDRetrieved
This registry value indicates the number of days that the DMRC
waits before it checks for updated metadata for a device. This
value applies to devices for which the DMRC previously received
metadata.
Path
Key
Value
Default
Value
HKCU\Software\Microsoft\Windows\CurrentVersion\Dev
iceMetadata
CheckBackMDRetrieved
0 to 256: REG_DWORD
8
Run Ddodiag.exe
Follow these steps to run Ddodiag.exe:
1. Launch a command prompt.
2. Type start /wait ddodiag.exe -o <Filename.xml> and press the
Enter key.
3. Type notepad.exe <Filename.xml>.
Note: The xml contains all properties of device containers in the
system. If you are investigating a specific device problem, find the
HardwareID or ModelID in the XML and see the properties of the
device container. If you are investigating whether a given property
value is set or not, try to find the value in the XML file.
Example 1: When you know the target device hardware IDs
1. Open the filename.xml by using Notepad or any editor.
Event ID: 7901 Information: Device metadata package downloaded from WMIS.
Event ID: 7950 Information: New device metadata package discovered in the
local metadata store.
0x50000011
Failed to unpack metadata package
Package name failed filename validation
0x50000021
Couldnt open PackageInfo
Couldnt open DeviceInfo
Couldnt open WindowsInfo
Couldnt open ServiceInfo
Couldnt open SoftwareInfo
0x50000022
Couldnt parse PackageInfo
Couldnt parse DeviceInfo
Couldnt parse WindowsInfo
Couldnt parse ServiceInfo
Couldnt parse SoftwareInfo
Event ID: 7901 Information: Device metadata package downloaded from WMIS.
Language
Event ID: 7950 Information: New device metadata package discovered in the
local metadata store.
The Event ID text box is the unlabeled text box in the middle of the
dialog box with the default contents of <All Event Ids>.
Network error:
Appendix
Debug device setup by Using Event Tracing for Windows (ETW) in
Windows 8
If you debug a device setup problem including device metadata
package installation, we recommend that you use Event Viewer.
Admin Node
Below are the events that will be logged in the Admin Node.
Mode information
o
Normal
Paused
Setup
OOBE
The service uptime (how long the DSM service was up).
DSM failed to start up. This event log message contains the following
information:
DSM faces an error and starts retry sequence. This event log
message contains the following information:
DSM leaves the retry sequence. This event log message contains the
following information:
The retry cycle time in this session. (How many times the DSM
tried to retry in the session)
DSM enters service mode. This event log message contains the
following information:
Mode Information
o
Normal
Paused
Setup
OOBE
September 28, 2012
2012 Microsoft Corporation. All rights reserved.
Device Name
Container ID
The active work time (how long the DSM works actively).
Driver package ID
Devnode ID
The DSM service was delayed. This event log message contains
the following information:
Device ID
September 28, 2012
2012 Microsoft Corporation. All rights reserved.
Driver package ID
Device instance ID
Devnode ID
Device container ID
Device container ID
Device name
Container ID
Device name
Container ID
Devnode name
Error code
Debug Node
Event ID: 102 Information: DSMServiceDllLoad.
DSM enters service state. This event log message contains the
following information:
State Information
o
Init
Idle
Working
Retry pending
Shutdown
DSM job started for a device container. This event log message
contains the following information:
Container ID
Job ID
Job Mode
o
StartDeviceInstall
InstallDrivers
RunHeuristics
InstallMetadata
Remove
Refresh
RefreshProperty
DSM completes a job for a device container. This event log message
contains the following information:
Container ID
Job ID
Task Status
o
Complete
Restart Required
Soft Error
Hard Error
Internal Error
Cancelled
Device container ID
Message: A handler for the app was already registered for the
device container.
Device container ID
The background task failed to get registered. The event log message
contains the following information:
Message: The device container and the app specify background
task information, but we failed to register with error.
Device container ID
September 28, 2012
2012 Microsoft Corporation. All rights reserved.
Glossary
DMRC
Device Metadata Retrieval Client that manages the device
metadata operation in Windows 7.
WMIS
Windows Metadata and Internet Services, which serves device
metadata packages that partners submit to the Dashboard over
the Internet.
Windows Dev Center-Hardware Dashboard
This is a Web site that enables you to qualify hardware devices
and software applications for the Microsoft Logo Program. You can
then provide information about your products on the Windows
Product Listing sites as well as update your driver distribution
settings on Windows Update, retrieve end-user crash data, and
submit device metadata packages.
For more information, see Resources at the end of this paper.
Device Metadata Store
%programdata%\Microsoft\Windows\DeviceMetadataStore\
The folder into which users or applications copy device metadata
packages when they install the packages on the local system.
Device Metadata Cache
%localappdata%\Local\Microsoft\Device Metadata\
September 28, 2012
2012 Microsoft Corporation. All rights reserved.
%PROGRAMDATA
%\Microsoft\Windows\DeviceMetadataStore (In Windows 8)
The folder in which the DMRC caches the unpacked device
metadata package. All unpacked device metadata packages such
as the device metadata packages that are downloaded from
WMIS or the device metadata packages that are installed into the
Local Device Metadata Store are saved in this folder.
Resources
MSDN