Microsoft KB Archive/321317

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

Article ID: 321317

Article Last Modified on 1/19/2004

-

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\ \Counter

where  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:  Start Registry Editor (Regedt32.exe).

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

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

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

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

 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.</li> Quit Registry Editor.</li></ol>

<div class="moreinformation_section">

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

Platform SDK: Performance Monitoring

Additional query words: WMT

Keywords: kbprb kbpending kbdswwmm2003swept KB321317

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.