---
schema_version: "1"
id: 12febe3455bfb798a2a495131ea125bd9031af48585eb822a779cb9a69bde0c7
title: แก้ไขปัญหาการค้นหา WMI
collection: tableau
version: current
locale: th-th
portal_url: https://docs.salesforce.com/tableau/current/th-th/server/rmt-troubleshoot-wmi-query-issues.md
canonical_url: https://help.tableau.com/current/server/th-th/rmt-troubleshoot-wmi-query-issues.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 3c9b5011de8e91043bc8459851e1229c3dc210ee5c6b85e9bf29dd179f179147
description: Troubleshoot WMI query issues caused by corrupt performance counters in RMT.
---
[ข้ามไปยังเนื้อหาหลัก](#main-content)

# แก้ไขปัญหาการค้นหา WMI

หากตัวนับประสิทธิภาพเสียหาย คุณจะเห็นปัญหาในเอเจนต์ Resource Monitoring Tool ปัญหาจะถูกรายงานในไฟล์บันทึกพื้นหลังและจะคล้ายกับตัวอย่างต่อไปนี้:

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

ซึ่งอาจเกิดจากตัวนับประสิทธิภาพบางรายการสูญหายบนเซิร์ฟเวอร์ หากต้องการตรวจสอบ ให้เรียกใช้ `perfmon.exe` และตรวจสอบข้อมูลคำเตือนใดๆ

หาก `perfmon.exe` ยืนยันว่าตัวนับประสิทธิภาพสูญหาย คุณสามารถลองซ่อมแซมด้วยการสร้างตัวนับทั้งหมดใหม่ ดูข้างล่างนี้

**การสร้างตัวนับประสิทธิภาพใหม่ทั้งหมด:**

หากต้องการสร้างตัวนับประสิทธิภาพใหม่ทั้งหมด ให้พิมพ์คำสั่งต่อไปนี้ที่ข้อความแจ้งคำสั่งผู้ดูแลระบบ กด ENTER หลังจากคำสั่งแต่ละรายการ

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

ต่อไป ให้ซิงค์ตัวนับใหม่ด้วย Windows Management Instrumentation (WMI):

```
WINMGMT.EXE /RESYNCPERF
```

สุดท้าย ให้หยุดและรีสตาร์ทบริการบันทึกและการแจ้งเตือนประสิทธิภาพ

## ใครสามารถดำเนินการนี้ได้บ้าง

คุณจำเป็นต้องเป็นผู้ดูแลระบบในเครื่องและเป็นผู้ดูแลระบบของ Resource Monitoring Tool เพื่อแก้ไขปัญหาเกี่ยวกับการค้นหา WMI