Group Policy "Remove Default Microsoft Store packages from the system"

someITdude 271 Reputation points
2026-10-21T17:34:56.1133333+00:00

Dear community

We have configured the Group Policy “Remove Default Microsoft Store packages from the system” on our Windows 11 25H2 domain clients to remove unnecessary apps.

For most clients this works fine, but on a few machines the app‑repository database appears to become corrupted after applying this policy:

The file "StateRepository-Machine.srd-wal" grows endlessly -> up to 100 GB or more... The only workaround is to reboot the client. After a reboot, Windows eventually cleans up the file, but this cleanup process takes a long time. Afterwards, the same behavior starts again.

The static database file "StateRepository-Machine.srd" also grows to several gigabytes.

Both files are stored under "C:\ProgramData\Microsoft\Windows\AppRepository"

Has anyone else experienced this issue?

If we disable the policy, the abnormal behavior stops, but the "StateRepository-Machine.srd" file remains extremely large.

Windows for business | Windows Client for IT Pros | Directory services | Deploy group policy objects
0 comments No comments

1 answer

Sort by: Most helpful
  1. Daphne Huynh (WICLOUD CORPORATION) 2,540 Reputation points Microsoft External Staff Moderator
    2026-10-22T01:58:52.8066667+00:00

    Welcome to Microsoft Q&A!

    Thank you for providing the detailed observations and for testing the behavior with the policy both enabled and disabled.

    The Remove Default Microsoft Store packages from the system policy are designed to remove selected preinstalled Microsoft Store apps at the device level on supported Windows 11 Enterprise and Education devices.

    However, the excessive growth of StateRepository-Machine.srd-wal or StateRepository-Machine.srd that you are seeing is not described as expected behavior in the available Microsoft documentation. The documented limitation for this feature relates to devices that support multi-user sessions and does not mention abnormal StateRepository database growth.

    Since you have already observed that the abnormal growth stops when this policy is disabled, that is a useful indication for narrowing down the investigation. I would suggest checking one of the affected clients as follows:

    1. Make sure the device is fully updated with the latest Windows cumulative updates.
    2. Review the policy configuration and compare the selected packages with a client that is working normally.
    3. While reproducing the issue, review:
    Event Viewer > Applications and Services Logs > Microsoft > Windows > AppxDeployment-Server > Microsoft-Windows-AppxDeploymentServer/Operational
    

    Please pay attention to Event ID 762 when a package has been successfully removed by this policy. Checking the events around the time the database starts growing may help identify whether a particular package or removal operation is involved.

    1. If practical, test the policy with a smaller selection of apps. This may help narrow down whether the behavior is associated with a particular package.

    I would avoid manually deleting or replacing the files in C:\ProgramData\Microsoft\Windows\AppRepository as an initial workaround, as the available documentation does not provide this as a recovery method for this policy.

    If the issue remains consistently reproducible on a fully updated Windows 11 25H2 device, I recommend reporting the behavior through Feedback Hub, using Developer Platform > App deployment as the category and subcategory. I suggest you follow this path for issues encountered while testing this feature. If this is significantly affecting your production environment, opening a Microsoft Support case would also be appropriate so that diagnostic information from an affected device can be investigated in more detail.

    References:

    Policy-based in-box app removal | Microsoft Learn

    Policy-Based Removal of Pre-installed Microsoft Store Apps | Microsoft Support

    If you find it useful, please click Accept Answer.

    Thank you for choosing Microsoft Q&A.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.