If Disk Cleanup only works after privileges are raised, the issue is usually UAC or permission scope; if it is blocked for everyone on a managed PC, check Group Policy, AppLocker, Software Restriction Policies, or device-management rules first. This guide shows how to identify the block, check the winning policy, and apply the fix at the right layer for standard and domain-joined Windows devices.
What you'll need
- A Windows account with the right access for the device type you manage.
- Access to Local Group Policy Editor on Windows Pro or Enterprise. (Microsoft Learn)
- Permission to run gpresult /h and open the HTML report.
- Access to
rsop.mscfor resultant policy review. - Access to the device owner for Intune, GPO, or security baseline changes.
Which policy layer is blocking it?
Start by separating three cases: cleanmgr.exe is blocked from launching, it opens only when elevated, or it opens but some cleanup categories are missing. Those point to different controls. On managed Windows devices, the active policy can come from local settings, a domain GPO, a security baseline, or an MDM profile. The fastest way to narrow it down is to match the symptom to the policy surface and then confirm it in gpresult, RSOP, Local Security Policy, or Event Viewer.
| Symptom | Most likely policy layer | Verification command or screen | Owner to contact |
|---|---|---|---|
| Disk Cleanup does not start for standard users | Execution control or permission block | Run gpresult /h and check Software Restriction Policies or AppLocker entries | Local admin, endpoint security, or AD policy owner |
| Disk Cleanup starts only after Run as administrator | Privilege or UAC problem | Open Local Group Policy Editor and review User Rights Assignment; also test with a local admin account | Local admin or workstation support |
| Disk Cleanup fails on a domain-joined PC after a policy change | Domain GPO or security baseline | Run gpresult /h and rsop.msc; compare the winning GPOs and scope |
AD or endpoint management team |
| Disk Cleanup is blocked on an Intune-managed device | MDM policy or baseline | Check Settings > Accounts > Access work or school and review policy sync status | Intune or security policy owner |
- Confirm the launch behavior. Start Disk Cleanup from Start search and note whether cleanmgr.exe opens, asks for elevation, or closes immediately. That single detail separates a launch block from a permission problem.
- Check effective policy. Run gpresult /h C:\Temp\gpresult.html from an elevated Command Prompt, then open the report and review the winning GPOs. The HTML report is useful because it shows precedence and the user or computer scope that actually applied. Look for the Computer Details and User Details sections, then check Applied Group Policy Objects, Security Settings, and any entries for AppLocker or Software Restriction Policies.
- Check resultant policy. Run
rsop.mscand inspect both Computer Configuration and User Configuration. This makes it easier to spot the source when a local setting and a domain setting disagree. In RSOP, the policy appears under the same tree structure used in Group Policy, so the relevant path is easier to trace than in the raw registry. - Test with policy refresh. Run gpupdate /force, then sign out and sign back in or restart the PC. Group Policy refresh applies after logon, startup, or a background refresh cycle, so a change may not appear immediately. If the policy is domain-delivered, also check whether the device has recently contacted a domain controller.
- Check the local editor. Open Local Group Policy Editor on Windows Pro or Enterprise and review any obvious restrictions under Computer Configuration and User Configuration. Windows Home does not include this editor, so local policy checks are not available there.
- Check the event logs. Open Event Viewer and review Windows Logs > Security for policy-related auditing, then check Applications and Services Logs > Microsoft > Windows > AppLocker for executable and script blocks. These logs help confirm whether the block is enforcement, not just a UI issue.
What if Disk Cleanup launches but options are missing?
If cleanmgr.exe opens yet specific categories are missing, compare the categories shown in Disk Cleanup with the device policy scope. If only some boxes are gone, the executable is running, but a managed setting may have changed what the device exposes. In some environments, Storage Sense is the intended fallback, so missing legacy options do not always mean the device is broken. The fix is to identify which control removed the category, then change that policy at the right owner level.
- Review the missing items. Compare the categories shown in Disk Cleanup with the device policy scope. If only some boxes are gone, the executable is running, but a policy is hiding or limiting data sources.
- Check AppLocker and SRP. Open gpresult /h and look for AppLocker or Software Restriction Policies entries. These controls can block cleanmgr.exe outright or prevent related helpers from starting, which is often misread as a cleanup failure. For exact policy paths, check Computer Configuration > Windows Settings > Security Settings > Application Control Policies > AppLocker and Computer Configuration > Windows Settings > Security Settings > Software Restriction Policies.
- Inspect baseline settings. Review the active Windows security baseline in your management console or local security policy view. If the device is managed, confirm whether the baseline is enforced by MDM or a domain-linked profile before changing anything locally.
Suppose a help desk agent sees Disk Cleanup open, but the Temporary Files box is missing on a Windows 11 Pro laptop joined to the domain. That points away from a broken app and toward a policy that affected the device configuration. The first place to confirm that is the winning GPO in gpresult, then the matching node in RSOP, and finally the Event Viewer logs if enforcement needs proof.
Can you re-enable Disk Cleanup on a standalone PC?
Yes, if the machine is not domain-managed and you have local admin rights, you can usually re-enable it by changing the local policy or removing the block that targets cleanmgr.exe. On Windows Home, you cannot edit Local Group Policy Editor, so you must rely on local admin settings, security software, or another cleanup method.
Windows Home and Pro
- Open the local policy editor. On Pro or Enterprise, run
gpedit.msc. On Home, skip this and use another approved cleanup method, because the editor is not present. - Search for cleanup blocks. Review the administrative templates and security-related policies that can block executables or admin tools. Focus on any setting that targets software restriction, shell access, or system utilities.
- Remove the restriction. Change the policy from enabled to not configured, or remove the rule that targets cleanmgr.exe. Then run gpupdate /force and start Disk Cleanup again.
Execution policy and permissions
- Test with elevated rights. Right-click Disk Cleanup and choose Run as administrator. If that works, the block is privilege-related, not a launch restriction.
- Verify account rights. Sign in with a local administrator account and try again. If the tool works only under admin rights, route the request to the workstation owner if the setting is intentionally restricted.
How do you fix it on domain-joined or Intune-managed devices?
On managed devices, do not start by changing the local machine. A domain GPO, security baseline, or Intune profile can reapply the block after every refresh. The correct fix is to find the winning policy, identify its owner, and change it at that layer instead of fighting it locally.
Domain GPO and gpresult /h
- Review the winning GPO. Run gpresult /h C:\Temp\gpresult.html and open the report. Look for the GPO name that set the restriction and note whether it applies to the computer, the user, or both. The report is the quickest way to see which policy actually won.
- Check scope and precedence. Use
rsop.mscto confirm which policy source won. In a multi-OU environment, domain controller replication can delay fixes, so a change may not appear on every machine at the same time. If the result looks inconsistent, compare the GPO link, security filtering, and the last refresh time before assuming the change failed. - Wait for propagation. After the GPO owner changes the setting, run gpupdate /force and restart the PC. If the restriction remains, verify the OU link, security filtering, and replication status before making a second change.
Security baseline and AppLocker checks
- Check the baseline owner. Review the device security baseline in Intune or your endpoint security console.
- Inspect execution rules. Look for AppLocker or Software Restriction Policies that target cleanmgr.exe. If the file is blocked there, changing a cleanup setting will not help. The policy paths to verify are Computer Configuration > Windows Settings > Security Settings > Application Control Policies > AppLocker and Computer Configuration > Windows Settings > Security Settings > Software Restriction Policies.
- Re-sync the device. Trigger a policy sync from Settings > Accounts > Access work or school, then sign out and back in. If the policy returns, the device owner needs to change the assigned profile or baseline.
A common first-timer mistake is to remove a local rule on a domain laptop and then assume the issue is gone. If the next policy refresh restores the block, the real owner is the GPO, Intune profile, or baseline assignment, not the local machine.
Common mistakes
- Treating a launch block and a privilege problem as the same issue.
- Editing local policy on a device that is clearly domain-managed.
- Ignoring AppLocker or Software Restriction Policies and chasing cleanup settings instead.
- Forgetting that Windows Home lacks Local Group Policy Editor.
- Expecting a GPO fix to appear before domain controller replication finishes.
- Skipping the policy owner and making local changes that will be overwritten.
Which cleanup methods still work when Disk Cleanup is disabled?
Windows Storage Sense is usually the first fallback because it is built into Windows and is often left available even when legacy tools are restricted. You can also use manual cleanup through Settings, or ask the device owner whether another approved maintenance tool is allowed on that fleet. If the block is intentional, follow the approved path instead of trying to bypass it. Microsoft’s current guidance also treats Storage Sense as the built-in replacement path on supported Windows devices when legacy cleanup behavior is unavailable.
- Open Storage Sense. Go to Settings > System > Storage and review the cleanup options there. This is the safest built-in fallback when cleanmgr.exe is blocked.
- Use approved manual cleanup. Remove temporary files through the Storage page or other approved Windows settings, then recheck available space. If the device is managed, keep the cleanup method inside policy.
- Escalate to the owner. If Storage Sense is also restricted, ask the AD, Intune, or security baseline owner to confirm which tools are approved for that device group.
Prevention
Document which device groups may use Disk Cleanup, Storage Sense, or neither. That makes future policy changes easier to trace, especially when a domain GPO or baseline update rolls across several OUs at once. It also shortens troubleshooting because the next admin can check the intended policy owner instead of rediscovering the block from scratch.
Frequently asked questions
Why is disk cleanup blocked by Group Policy on my PC?
It is usually blocked by an execution rule, a security baseline, or a privilege limitation, not by one single Windows setting. Check gpresult /h first, then compare the result with rsop.msc. If the tool runs only as admin, the issue is likely permissions, not Group Policy. If the block is enforced, Event Viewer can confirm whether AppLocker or Software Restriction Policies triggered it.
Which Group Policy settings can disable Disk Cleanup?
Look for policies that restrict software execution or admin tools, especially AppLocker and Software Restriction Policies. A domain GPO can also override a local setting. The fastest check is gpresult /h C:\Temp\gpresult.html, which shows the winning GPO and the scope that applied. Then confirm the exact path in rsop.msc or in Local Group Policy Editor if the device is not domain-managed.
How do I check whether a domain policy or local policy is blocking cleanup?
Run gpresult /h and open the HTML report, then compare it with rsop.msc. If a domain GPO appears in the winning list, it overrides local settings. If no domain policy appears, inspect Local Group Policy Editor on Windows Pro or Enterprise. For launch blocks, check Event Viewer under Windows Logs > Security and the Microsoft > Windows > AppLocker log.
Can I run Disk Cleanup if I am not a local administrator?
Sometimes, but not always. If cleanmgr.exe opens without elevation, the device policy allows it. If it asks for admin rights or closes immediately, you need a local administrator or an owner who can change the policy that blocks execution.
How do I re-enable Disk Cleanup on a domain-joined Windows device?
Change the blocking setting in the winning GPO, then wait for replication and refresh policy on the device. Run gpupdate /force, sign out, and sign back in. If the block returns, the same setting is still active in the domain or a linked baseline. If the setting is not obvious, check the AppLocker and Software Restriction Policies nodes in the effective policy report first.
How do I tell whether Intune, GPO, or a security baseline is causing the block?
Start with gpresult /h and rsop.msc. If the report names a domain GPO, the AD team owns it. If the device is enrolled and synced through Settings > Accounts > Access work or school, check the Intune profile and baseline assignment next. If the block appears only after sign-in or refresh, Event Viewer can help confirm which enforcement path applied it.