Windows Features Stuck on Please Wait – How to Fix
In this article
Yes, you can get past the “Please wait” screen in the Turn Windows features on or off dialog by stopping the stuck service, cleaning the component store, and then reopening the feature list.
What You'll Need
- An account with local administrator rights.
- Internet access (optional but recommended for DISM online repair).
- Windows installation media or a mounted ISO (only if DISM needs source files).
Step‑by‑Step
- Restart the computer. A simple reboot often clears a hung background process. After the system boots, try opening the dialog again (Control Panel > Programs > Turn Windows features on or off). If the screen still shows “Please wait” for more than a minute, continue.
-
Stop the Windows Modules Installer service. Press Win + R, type
services.mscand press Enter. In the Services window locate Windows Modules Installer (sometimes displayed as TrustedInstaller). Right‑click it and choose Stop. If the service is already stopped, skip this step. -
Delete the pending operations file. Open File Explorer and navigate to
C:\Windows\WinSxS. Find the file namedpending.xmland delete it (you may need to confirm administrator permission). This file stores operations that were queued but never completed, and a corrupted copy can cause the “Please wait” loop. -
Run DISM to repair the component store. Open an elevated Command Prompt (search for
cmd, right‑click, Run as administrator). Execute the following command:DISM /Online /Cleanup-Image /RestoreHealth
DISM will contact Windows Update to download any missing files. If your machine cannot reach the internet, add the/Source:D:\Sources\install.wimswitch (replaceD:with the drive letter of your installation media) to point DISM at a local source. -
Run System File Checker. Still in the elevated command window, type:
sfc /scannow
This scans all protected system files and replaces corrupted versions with the correct Microsoft‑supplied copies. Wait until the scan finishes; it may take several minutes. -
Restart the Windows Modules Installer service. Return to
services.msc, right‑click Windows Modules Installer and select Start. The service will now run with a clean state. - Open the feature dialog again. Go to Control Panel > Programs > Turn Windows features on or off. The list should load quickly, allowing you to enable or disable components as needed.
-
Optional: Clear the CBS log if the problem recurs. The log file at
C:\Windows\Logs\CBS\CBS.logcan grow large and sometimes hide errors. Deleting (or renaming) it forces Windows to start a fresh log on the next operation.
Common Mistakes
- Attempting to delete
pending.xmlwhile the Windows Modules Installer service is running. Always stop the service first. - Running DISM without the
/Onlineswitch, which tells the tool to work on the currently running Windows image. - Skipping the System File Checker step; many hidden DLL issues are only fixed by
sfc /scannow. - Using a non‑administrator account. Without elevated rights the commands above will fail silently or return “Access denied”.
Tips
- Keep a recent system restore point before making changes. If something goes wrong you can roll back to a known good state.
- If DISM reports “The source files could not be found”, mount the correct Windows ISO and point the
/Sourceparameter to theSources\install.wimfile inside the ISO. - Running
DISM /Online /Cleanup-Image /StartComponentCleanupafter the repair can shrink the WinSxS folder and prevent future hangs. - For Windows 11, the same steps apply, but the Settings app also offers a “Optional features” page (Settings > Apps > Optional features) that can be used instead of the classic Control Panel view.
Troubleshooting
If the dialog is still stuck after completing the steps above, follow this escalation path:
- Check for Windows updates. Open Settings > Windows Update and install any pending quality or feature updates. A newer build often contains fixes for the installer service.
- Run the built‑in troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters, locate “Windows Update” and run it. The tool can automatically reset services and clear corrupted caches.
- Perform an in‑place upgrade. Download the latest Windows Media Creation Tool from Microsoft, choose “Upgrade this PC now”, and select the option to keep files and apps. This refreshes all system components without a full clean install.
- Backup data and consider a clean install. If none of the above resolves the issue, a clean installation guarantees a pristine component store. Remember to back up personal files, product keys, and a list of installed programs before proceeding.
Frequently Asked Questions
Why does the “Please wait” screen appear in the first place?
The dialog reads the component store (WinSxS) to build a list of optional Windows features. If the store is corrupted, a pending operation file is left behind, or the Windows Modules Installer service is hung, the UI cannot finish loading and displays the indefinite “Please wait”.
Do I need to be connected to the internet for DISM to work?
DISM can download missing files from Windows Update when online. If you are offline, you must supply a local source (an ISO or DVD) using the /Source parameter.
Will deleting pending.xml remove any installed features?
No. The file only records operations that were queued but not completed. Deleting it forces Windows to rebuild the pending list from the current component store, which does not affect already installed features.
Can I run these steps on Windows Server?
The same commands and service names exist on Windows Server editions, so the procedure works there as well. Use Server Manager or PowerShell to access the feature list if you prefer a GUI.
Is it safe to run DISM /RestoreHealth on a production machine?
Yes, the command only reads and repairs system files; it does not delete user data. However, always ensure you have a recent backup or restore point in case an unexpected issue arises.
What should I do if the Windows Modules Installer service cannot be stopped?
Open an elevated Command Prompt and run net stop trustedinstaller /y. If the service still refuses, a reboot into Safe Mode will guarantee it is not running, allowing you to delete pending.xml safely.