WMI query doesn't work in Windows Server 2012 R2 or Windows Server 2012

Vzťahuje sa na: Windows Server 2012 R2 DatacenterWindows Server 2012 R2 StandardWindows Server 2012 R2 Essentials

This article describes an issue when you run the Windows Management Instrumentation (WMI) query in Windows Server 2012 R2 or Windows Server 2012. You can fix this issue by using the update or hotfix in this article. Before you install this update or hotfix, see the Prerequisites section.


Assume that you have an application that queries scheduled tasks periodically through WMI to Root\Microsoft\Windows\TaskScheduler\MSFT_ScheduledTask. Every time the WMI query runs, the WMI provider process memory usage increases. Eventually, the memory usage reaches the WMI provider process quota, and no more WMI queries can be done in this process.


This issue occurs because of a memory leak in the Wmiprvse.exe process when you run WMI queries to monitor scheduled tasks.

How to get this update or hotfix

You can get this update or hotfix by using one of the following methods. We have released an update through Windows Update and Microsoft Update Catalog for Windows Server 2012 R2. We also have released a hotfix for Windows Server 2012. Even though this issue is observed only in Windows Server 2012 R2 or Windows Server 2012, the update also applies to Windows 8.1 and Windows RT 8.1.

Important If you install a language pack after you install this update or hotfix, you must reinstall this update or hotfix. Therefore, we recommend that you install any language packs that you need before you install this update or hotfix. For more information, see Add language packs to Windows.

Method 1: Windows Update

This update is provided as a Recommended update on Windows Update. For more information on how to run Windows Update, see How to get an update through Windows Update.

Method 2: Microsoft Update Catalog

To get the stand-alone package for this update, go to the Microsoft Update Catalog website.

Note You must be running Microsoft Internet Explorer 6.0 or later.

Method 3: Hotfix package for Windows Server 2012

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that's described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there's a "Hotfix Download Available" section at the top of this Knowledge Base article. If this section doesn't appear, submit a request to Microsoft Customer Service and Support to get the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that don't qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix Download Available" form displays the languages for which the hotfix is available. If you don't see your language, it's because a hotfix isn't available for that language.

Update or hotfix detail information


To apply this update, you must have April 2014 update rollup for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 (2919355) installed in Windows 8.1 or Windows Server 2012 R2.

There's no prerequisite for Windows Server 2012 to apply this hotfix.

Registry information

To apply this update or hotfix, you don't have to make any changes to the registry.

Restart requirement

You may have to restart the computer after you apply this update or hotfix.

Update or hotfix replacement information

This update or hotfix doesn't replace a previously released update or hotfix.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


See the terminology that Microsoft uses to describe software updates.

File Information

The English (United States) version of this software update installs files that have the attributes that are listed in the following tables.