
wmi服務或wmi提供程序

The WMI Provider Host process is an important part of Windows, and often runs in the background. It allows other applications on your computer to request information about your system. This process shouldn’t normally use many system resources, but it may use a lot of CPU if another process on your system is behaving badly.
WMI Provider Host進程是Windows的重要組成部分,通常在后臺運行。 它允許計算機上的其他應用程序請求有關系統的信息。 該進程通常不應使用很多系統資源,但是如果系統上的另一個進程表現不佳,則可能會占用大量CPU。
This article is part of?our ongoing series?explaining various processes found in Task Manager, like?Runtime Broker,?svchost.exe,?dwm.exe,?ctfmon.exe,?rundll32.exe,?Adobe_Updater.exe, and?many others.?Don’t?know what those services are? Better start reading!
本文是我們正在進行的系列文章的一部分,解釋了在任務管理器中發現的各種過程,例如Runtime Broker , svchost.exe , dwm.exe , ctfmon.exe , rundll32.exe , Adobe_Updater.exe以及許多其他過程。 不知道這些服務是什么? 最好開始閱讀!
什么是WMI提供程序主機? (What Is WMI Provider Host?)
“WMI” stands for “Windows Management Instrumentation”. This is a Windows feature that provides a standardized way for software and administrative scripts to request information about the state of your Windows operating system and data on it. “WMI Providers” provide this information, when requested. For example, software or commands could find information about the state of BitLocker drive encryption, view entries from the event log, or request data from installed applications that include a WMI provider. Microsoft has a list of included WMI providers on its website.
“ WMI”代表“ Windows Management Instrumentation”。 這是Windows的一項功能,它為軟件和管理腳本提供了一種標準化的方式來請求有關Windows操作系統狀態及其上數據的信息。 根據要求,“ WMI提供者”提供此信息。 例如,軟件或命令可以找到有關BitLocker驅動器加密狀態的信息,可以從事件日志中查看條目,也可以從包括WMI提供程序的已安裝應用程序中請求數據。 Microsoft在其網站上列出了包含的WMI提供程序。
This is a particularly useful feature for enterprises that centrally manage PCs, especially as information can be requested via scripts and shown in a standard way in administrative consoles. However, even on a home PC, some software you have installed may request information about the system through the WMI interface.
對于集中管理PC的企業而言,這是一個特別有用的功能,尤其是可以通過腳本請求信息并在管理控制臺中以標準方式顯示信息時。 但是,即使在家用PC上,您已安裝的某些軟件也可能會通過WMI界面請求有關系統的信息。
You can also use WMI yourself to find a variety of useful pieces of information that aren’t normally exposed in the Windows interface on your own PC. For example, we’ve covered the WMI Command line tool (WMIC) to get your PC’s serial number, find your motherboard’s model number, or just to see the SMART health status of a hard drive.
您也可以自己使用WMI來查找各種有用的信息,這些信息通常不會在您自己的PC的Windows界面中公開。 例如,我們介紹了WMI命令行工具(WMIC),以獲取您的PC的序列號,查找主板的型號或僅查看硬盤的SMART運行狀況。

為什么要使用這么多的CPU? (Why Is It Using So Much CPU?)
WMI Provider Host shouldn’t normally use much CPU, as it shouldn’t normally be doing anything. It may occasionally use some CPU when another piece of software or script on your PC asks for information via WMI, and that’s normal. High CPU usage is likely just a sign that another application is requesting data via WMI.
WMI提供程序主機通常不應該使用太多CPU,因為它通常不應該做任何事情。 當PC上的另一軟件或腳本通過WMI詢問信息時,它有時可能會使用一些CPU,這很正常。 高CPU使用率可能只是另一個應用程序正在通過WMI請求數據的信號。
However, prolonged high CPU usage is a sign something is wrong. WMI Provider Host shouldn’t be using lots of CPU resources all the time.
但是,長時間的高CPU使用率表明存在問題。 WMI提供程序主機不應該一直使用大量CPU資源。
Restarting the Windows Management Instrumentation service may help if it’s stuck in a bad state. You could also just restart your computer, but there’s a way to restart the service without restarting your computer. To do this, open your Start menu, type “Services.msc”, and press Enter to launch the Services tool.
如果卡在狀態不佳,重新啟動Windows Management Instrumentation服務可能會有所幫助。 您也可以只重新啟動計算機,但是有一種方法可以在不重新啟動計算機的情況下重新啟動服務。 為此,請打開“開始”菜單,鍵入“ Services.msc”,然后按Enter啟動服務工具。

Locate the “Windows Management Instrumentation service” in the list, right-click it, and select “Restart”.
在列表中找到“ Windows Management Instrumentation服務”,右鍵單擊它,然后選擇“重新啟動”。

If you see consistently high CPU usage, it’s likely that another process on your system is behaving badly. If a process is constantly requesting a large amount of information from WMI providers, this will cause the WMI Provider Host process to use a lot of CPU. That other process is the problem.
如果您看到持續高的CPU使用率,則可能是系統上的另一個進程行為異常。 如果某個進程不斷向WMI提供程序請求大量信息,這將導致WMI提供程序主機進程使用大量CPU。 另一個過程就是問題所在。
To identify which specific process is causing problems with WMI, use the Event Viewer. On Windows 10 or 8, you can right-click the Start button and select “Event Viewer” to open it. On Windows 7, open the Start menu, type “Eventvwr.msc”, and press Enter to launch it.
要確定哪個特定進程導致WMI問題,請使用“事件查看器” 。 在Windows 10或8上,您可以右鍵單擊開始按鈕,然后選擇“事件查看器”將其打開。 在Windows 7上,打開“開始”菜單,鍵入“ Eventvwr.msc”,然后按Enter啟動它。

In the left pane of the Event Viewer window, navigate to Applications and Service Logs\Microsoft\Windows\WMI-Activity\Operational.
在“事件查看器”窗口的左窗格中,導航到“應用程序和服務日志\ Microsoft \ Windows \ WMI-Activity \ Operational”。

Scroll through the list and look for recent “Error” events. Click each event and look for the number to the right of “ClientProcessId” in the bottom pane. This tells you the ID number of the process that caused the WMI error.
滾動列表,查找最近的“錯誤”事件。 單擊每個事件,然后在底部窗格中查找“ ClientProcessId”右側的數字。 這告訴您導致WMI錯誤的進程的ID號。
There’s a good chance you’ll see several errors here. The errors may be caused by the same process ID number, or you may see multiple different process IDs causing errors. Click each error and see what the ClientProcessId is to find out.
您很有可能會在這里看到幾個錯誤。 該錯誤可能是由相同的進程ID號引起的,或者您可能會看到多個不同的進程ID導致錯誤。 單擊每個錯誤,然后查看ClientProcessId找出的內容。

You can now pin down a process that may be causing problems. First, open a Task Manager window by pressing Ctrl+Shift+Escape or by right-clicking the taskbar and selecting “Task Manager”.
現在,您可以確定可能導致問題的進程。 首先,通過按Ctrl + Shift + Escape或右鍵單擊任務欄并選擇“任務管理器”來打開任務管理器窗口。

Click over to the “Details” tab, click the “PID” column to sort running processes by process ID, and locate the process matching the ID number that appeared in the Event Viewer logs.
單擊“詳細信息”選項卡,單擊“ PID”列以按進程ID對正在運行的進程進行排序,然后找到與出現在事件查看器日志中的ID號匹配的進程。
For example, here, we’ve seen that the “HPWMISVC.exe” process caused these errors on this particular computer.
例如,在這里,我們已經看到“ HPWMISVC.exe”進程在此特定計算機上引起了這些錯誤。
If the process has since closed, you won’t see it in the list here. Also, when a program closes and reopens, it will have a different process ID number. That’s why you need to look for recent events, as the process ID number from older events in your Event Viewer won’t help you find anything.
如果此后此過程已關閉,則您不會在此處的列表中看到它。 同樣,當程序關閉并重新打開時,它將具有不同的進程ID號。 這就是為什么您需要查找最近的事件,因為事件查看器中較舊事件的進程ID編號將無法幫助您找到任何東西。

With this information in hand, you now know the process that may be causing problems. You can search for its name on the web to find out the software it’s associated with. You can also just right-click the process in the? list and click “Open File Location” to open its location on your system, which may show you the larger software package the program is a part of. You may need to update this software if you use it, or uninstall it if you don’t.
有了這些信息,您現在就知道了可能導致問題的過程。 您可以在網絡上搜索其名稱,以查找與其關聯的軟件。 您也可以右鍵單擊列表中的進程,然后單擊“打開文件位置”以在系統上打開其位置,這可能會向您顯示該程序所包含的較大軟件包。 如果您使用此軟件,則可能需要對其進行更新;否則,則可能需要將其卸載。
我可以禁用WMI提供程序主機嗎? (Can I Disable WMI Provider Host?)
It is technically possible to disable the “Windows Management Instrumentation service” on your computer. However, this will break many different things on your PC. It’s an important part of the Windows operating system and should be left alone.
從技術上講,可以在計算機上禁用“ Windows Management Instrumentation服務”。 但是,這將破壞PC上的許多不同內容。 它是Windows操作系統的重要組成部分,應單獨使用。
As the official description for this service says, “If this service is stopped, most Windows-based software will not function properly”. So don’t disable this service! If you have a problem with it, you need to identify the process on your computer that’s causing the WMI Provider Host to use so much CPU and update, remove, or disable that process instead.
如該服務的官方描述所述:“如果該服務停止,則大多數基于Windows的軟件將無法正常運行”。 因此,請不要禁用此服務! 如果您有問題,則需要確定導致WMI提供程序主機使用太多CPU的計算機上的進程,并改為更新,刪除或禁用該進程。

翻譯自: https://www.howtogeek.com/332838/what-is-the-wmi-provider-host-wmiprvse.exe-and-why-is-it-using-so-much-cpu/
wmi服務或wmi提供程序