Configure WMI Repository Size via Regedit

This article provides a step-by-step guide on how to configure the maximum size limit for the Windows Management Instrumentation (WMI) repository using the Windows Registry Editor (Regedit). Adjusting this value allows administrators to manage storage allocation for WMI data, prevent uncontrolled growth, and troubleshoot specific WMI repository size-related issues on Windows systems.

Steps to Change the WMI Repository Size Limit

Step 1: Open the Registry Editor

  1. Press Windows Key + R to open the Run dialog.
  2. Type regedit and press Enter (or click OK).
  3. If prompted by User Account Control (UAC), click Yes to grant administrator privileges.

Step 2: Navigate to the WMI CIMOM Key

In the Registry Editor address bar or left navigation pane, navigate to the following path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\CIMOM

Step 3: Modify or Create the Max DB Size Value

  1. In the right pane of the CIMOM key, look for a DWORD (32-bit) value named Max DB Size.
  2. If the value does not exist:
    • Right-click an empty area in the right pane.
    • Select New > DWORD (32-bit) Value.
    • Name the value Max DB Size and press Enter.
  3. Double-click Max DB Size to edit it.
  4. Under Base, select Decimal.
  5. In the Value data field, enter the desired size limit in bytes. Common values include:
    • 1 GB: 1073741824
    • 2 GB: 2147483648
    • 4 GB (Default on modern systems): 4294967295
  6. Click OK to save the changes.

Step 4: Restart the WMI Service

To apply the changes, the Windows Management Instrumentation service must be restarted:

  1. Open Command Prompt as an Administrator.

  2. Stop the WMI service by running:

    net stop winmgmt

    (Confirm by pressing Y if prompted to stop dependent services).

  3. Start the WMI service by running:

    net start winmgmt

The new WMI repository size limit is now active. Ensure any dependent services that were stopped are restarted as needed.