Windows Management Instrumentation Cannot Query Performance Counters from a Non-English Version of Windows Media Services (321317)



The information in this article applies to:

  • Microsoft Windows Media Services 4.1

This article was previously published under Q321317
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

When you use Windows Management Instrumentation (WMI) to query Microsoft Windows Media Services (WMS) performance counters from a non-English version of Microsoft Windows, WMI cannot retrieve the object names and indexes that it needs to access the performance counters.

CAUSE

During installation, WMS installs the performance object names and indexes in the following registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\langid\Counter

where langid is the ASCII representation of the three-digit hexadecimal language identifier.

For example, the U.S. English langid is 009 and the Japanese langid is 011. In a non-English version of Windows, counters are stored in both the native language of the system and in English; however, WMS only places the object names and indexes in the localized registry key, and not the English 009 key in non-English versions of Windows.

WORKAROUND

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To work around this behavior, copy the localized registry key to the English key:
  1. Start Registry Editor (Regedt32.exe).

    NOTE: Do not use Regedit.exe.
  2. Locate the Counter value under the following key in the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\langid

  3. Double-click the Counter value to open the Multi-String Editor (all of the values are selected).
  4. To copy all of these values, press CTRL+C, and then click Cancel.
  5. Locate the Counter value under the following key in the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009

  6. Double-click the Counter value to open the Multi-String Editor, press CTRL+V to paste the localized performance object names and indexes, and then click OK.
  7. Quit Registry Editor.

MORE INFORMATION

For more information about performance counters visit the following MS Web site:

Modification Type:MajorLast Reviewed:1/19/2004
Keywords:kbDSWWMM2003Swept kbpending kbprb KB321317