WMI is an integral part of ConfigMgr (SCCM). Let’s see How to increase WMI Default Memory Allocation for ConfigMgr Servers.
Introduction
Many SCCM issues could be directly linked with WMI. One of them could be SCCM console connectivity issues like “The ConfigMgr Provider reported an error connecting to the ConfigMgr site database server.”
Update: I have never tested this for Task Sequence export-related topic 🙂 18th March 2020.
This could be because the server doesn’t have enough WMI memory to handle all the processes (old win2k3 servers).
For More details on __ProviderHostQuotaConfiguration
Solution | FIX – Increase WMI Default Memory Allocation
The solution is to increase the WMI default memory. See the below steps to achieve the same.
NOTE! – Please try this in a LAB environment. I don’t think it’s recommended to change the WMI memory configuration directly on the production servers. Take a snapshot of the servers before the change to be on the safer side.
1) Run “wbemtest” on cmd prompt
2) Connect to the “root” namespace (not “root\default”, just “root”)
3) Select Open Instance, and specify “[email protected]”
4) Check “Local Only” for easier readability, and you will see the threshold values
5) Change the MemoryPerHost value to something greater – e.g. Double it (256 MB)
6) Save Property
7) Save Object
8) Exit
Script
Also, see the Sample VB Script Code:
Dim locator: Set locator = CreateObject("WbemScripting.SWbemLocator")
Dim wmi: Set wmi = locator.ConnectServer("", "root")
Dim quota: Set quota = wmi.Get("[email protected]")
quota.MemoryPerHost = 384*1024*1024
quota.put_()
Wscript.Echo(quota.MemoryPerHost)
It’s always better to restart the box after applying this change.
Resources
- Windows 10 WMI Explorer Details for Configuration Manager|Intune
- How to Troubleshoot Windows 10 Intune MDM Issues
- Microsoft Surface Book Review from an SCCM Admin
Anoop is Microsoft MVP! He is a Solution Architect in enterprise client management with more than 20 years of experience (calculation done in 2021) in IT. He is a blogger, Speaker, and Local User Group HTMD Community leader. His main focus is on Device Management technologies like SCCM 2012, Current Branch, and Intune. E writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc…
Thanks for sharing.
Are grateful for writing
When I update WMI quota it set it correctly. But my customer is reporting that it gets set back to defaults upon reboot. Any clues?
May be, you missed to click some buttons like “SAVE”, “OK” or “Apply”? If that is NOT the case then check the event logs to get some clue.
Need to launch the WBEMTEST with admin privilege and then save property and then save object ..
As vezes ela dá acesso negado
Você faz parte do administrador local no servidor SCCM?
I have found increasing the handlesperhost to 8192 fixed the memory issue for me with larger Task Sequences.
I did have memoryallhosts = 2GB, memoryperhost = 1GB