---
schema_version: "1"
id: 6ea4cd14c09fe21bf9276b6327f531752c30d2aa46d37f3aa4ad351d5036e053
title: Troubleshoot WMI Query Issues
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/server/rmt-troubleshoot-wmi-query-issues.md
canonical_url: https://help.tableau.com/v0.0/server/en-gb/rmt-troubleshoot-wmi-query-issues.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 068bb55ec6bfb32ffdd7a23faa131ed75a34ad2c77b063e9a2c6a30add38b315
description: Troubleshoot WMI query issues caused by corrupt performance counters in RMT.
---
[Skip to main content](#main-content)

# Troubleshoot WMI Query Issues

If performance counters become corrupt you will see issues in the Resource Monitoring Tool agent. The issue will be reported in the backgrounder log file and will look similar to the following example:

```
{  ...  
"Level":  "Error",  ...  
"RenderedMessage":  "Error getting network adapters",  
"Exception":  "System.Management.ManagementException: * Invalid query  *  
       at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) ..."  
...  }
```

This may be due to some performance counters being missing on the server. To check this, run `perfmon.exe` and check for any warning messages.

If `perfmon.exe` confirms the performance counters are missing, you can attempt to fix it by rebuilding all of the counters. See below.

**Rebuilding all performance counters:**

To rebuild all performance counters, type the following commands at an Administrative command prompt. Press ENTER after each command.

```
cd c:\windows\system32
lodctr /R
cd c:\windows\sysWOW64
lodctr /R
```

Next, resync the counters with Windows Management Instrumentation (WMI):

```
WINMGMT.EXE /RESYNCPERF
```

Finally, stop and restart the Performance Logs and Alerts service.

## Who can do this

You need to be a Administrator on the machine and be a Resource Monitoring Tool Administrator in order to troubleshoot WMI query issues.