1. 程式人生 > 實用技巧 >wmi服務或wmi提供程式_什麼是WMI提供程式主機(WmiPrvSE.exe),為什麼使用那麼多的CPU?...

wmi服務或wmi提供程式_什麼是WMI提供程式主機(WmiPrvSE.exe),為什麼使用那麼多的CPU?...

wmi服務或wmi提供程式

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 ofour ongoing seriesexplaining various processes found in Task Manager, likeRuntime Broker,svchost.exe,dwm.exe,ctfmon.exe,rundll32.exe,Adobe_Updater.exe, andmany others

.Don’tknow what those services are? Better start reading!

本文是我們正在進行的系列文章的一部分,解釋了在工作管理員中發現的各種過程,例如Runtime Brokersvchost.exedwm.exectfmon.exerundll32.exeAdobe_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提供程式