Restore Missing Windows 11 Features After Debloating
In this article
Yes, you can restore the Windows 11 components that disappeared after a safe‑repair debloat by reinstalling the built‑in packages with PowerShell, re‑enabling optional features via DISM, and adding any missing Store apps through Settings.
What You’ll Need
- Administrator access on the PC you are fixing
- Windows PowerShell (or Windows Terminal) running as admin
- Internet connection for downloading any missing Store apps or updates
- A USB drive or external backup if you want to keep a copy of your current user profile (optional but recommended)
Step‑By‑Step
- Create a restore point. Before making any changes, open the Start menu, type Create a restore point, select the System Properties result, click Create…, give it a name like “Pre‑Debloat Restore”, and press Create. This gives you a safety net if something goes wrong.
- Open PowerShell as Administrator. Right‑click the Start button and choose Windows Terminal (Admin) or search for PowerShell, right‑click, and select Run as administrator. Accept the UAC prompt.
- Re‑register all built‑in apps. Copy and paste the following command and press Enter:
Get-AppxPackage -AllUsers | Where-Object {$_.PackageFamilyName -like "*Microsoft.*"} | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}This scans every user profile, finds Microsoft‑signed packages, and re‑adds them to the system. The process can take several minutes; let it finish without closing the window. - Enable core Windows features that may have been disabled. Some debloat scripts turn off optional components like the Windows Subsystem for Linux, Media Playback, or legacy PowerShell. Run each of the following DISM commands one at a time, replacing
FeatureNamewith the actual name you need:DISM /Online /Enable-Feature /FeatureName:MicrosoftWindowsPowerShellV2 /All /NoRestart DISM /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All /NoRestart DISM /Online /Enable-Feature /FeatureName:MediaPlayback /All /NoRestart
You can view a full list of optional feature names by executingDISM /Online /Get-Features /Format:Table. Enable any that you recognise as missing from your usual workflow. - Check Settings for missing optional features. Open Settings → Apps → Optional features. Click Add a feature and look for items such as "Windows Media Player", "Internet Explorer", "Windows PowerShell ISE", or "Microsoft Print to PDF". Select each missing item and click Install. Windows will download any required files and enable the feature.
- Reinstall Store apps that were removed. Open the Microsoft Store, sign in if prompted, and search for apps like "Microsoft Edge", "Mail and Calendar", "Photos", "Your Phone", or any other default app you notice missing. Click Get or Install to restore them. For bulk reinstall, you can use PowerShell:
Get-AppxPackage -AllUsers | Where-Object {$_.IsFramework -eq $false -and $_.PackageFamilyName -notlike "*Microsoft.Store*"} | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}This forces the system to pull the latest package from the Store for each missing app. - Run Windows Update. Go to Settings → Windows Update → Check for updates. Install any pending cumulative updates, as they often contain fixes that restore default components and patch any broken dependencies.
- Restart the computer. A full reboot ensures that all newly registered packages and enabled features load correctly. After the restart, verify that the previously missing components (e.g., Action Center, Widgets, or the Xbox Game Bar) appear and function as expected.
Common Mistakes
One frequent error is running the PowerShell re‑registration command without administrator rights; the script will silently fail for many packages, leaving the system unchanged. Another mistake is copying the DISM command but omitting the /All switch, which can leave dependent sub‑features disabled. Users also sometimes delete the entire WinSxS folder or manually remove files from C:\Program Files\WindowsApps; this corrupts the component store and makes recovery far more difficult. Finally, skipping the creation of a restore point removes a safety net, so if a step unintentionally removes a critical package you have no easy way to roll back.
Tips
- Run
sfc /scannowbefore starting the restoration process. The System File Checker will repair any corrupted system files that could interfere with re‑registration. - If a specific app keeps failing to reinstall, clear the Store cache first by running
wsreset.exefrom the Run dialog. - Use the
Get-AppxPackage -AllUserspipeline to see which Microsoft packages are still present; compare the output with a clean Windows 11 installation list you can find on Microsoft’s documentation site. - When enabling optional features with DISM, add the
/NoRestartflag to batch multiple commands together, then restart once at the end to speed up the process. - Document any custom scripts you used for the original debloat. Knowing exactly which packages were removed helps you target the re‑installation commands more precisely.
Troubleshooting
If a feature still does not appear after following the steps above:
- Verify the package is actually installed. In PowerShell run
Get-AppxPackage -Name *feature‑name*. If nothing returns, the package is still missing. - Check the DISM logs for errors. Open
C:\Windows\Logs\DISM\dism.logand look for lines markedERROR. Common issues include insufficient disk space or a corrupted component store. - Run
DISM /Online /Cleanup‑Image /RestoreHealth. This command attempts to repair the component store using Windows Update as the source. After it finishes, repeat the/Enable-Featurecommands. - If the Store app itself fails to download a missing app, reset the Store with
wsreset.exeand then sign out and back into the Microsoft account. - As a last resort, perform an in‑place upgrade repair. Download the latest Windows 11 ISO from Microsoft, mount it, and run
setup.exe. Choose the option to keep personal files and apps. This refreshes the system files without a full clean install and usually restores all default components.
Remember that an in‑place upgrade will reinstall all built‑in apps, but it may also revert any custom settings you have applied, so back up important configuration files first.
Frequently Asked Questions
Will restoring built‑in apps delete my personal files?
No. Re‑registering packages or enabling optional features does not touch user data. Only an in‑place upgrade or a clean install would affect files, and those options give you the choice to keep personal data.
Do I need to reinstall third‑party software after the repair?
Typically not. The process only touches Microsoft‑signed components. However, if a debloat script removed a shared runtime (like .NET), you may need to reinstall any applications that depend on that runtime.
Can I automate the restoration with a single script?
Yes. Save the PowerShell re‑registration command and the list of DISM /Enable-Feature calls into a .ps1 file, then run it as administrator. Test the script on a non‑critical machine first to ensure it behaves as expected.
Why does the Xbox Game Bar still not launch after reinstall?
The Game Bar relies on the GamingOverlay optional feature and the Microsoft.XboxGamingOverlay package. Ensure both are enabled via DISM and that the Store version of the Game Bar is installed. If the problem persists, clear its local cache at %LocalAppData%\Packages\Microsoft.XboxGamingOverlay_8wekyb3d8bbwe\LocalCache and restart.
Is it safe to run these commands on a corporate‑managed PC?
Corporate policies may restrict PowerShell execution or DISM changes. Check with your IT department before modifying system components, as some features might be deliberately disabled for security compliance.
How can I tell which components were removed by the debloat script?
If the script logged its actions, review the log file. Otherwise, compare the output of Get-AppxPackage -AllUsers and DISM /Online /Get-Features against a known‑good Windows 11 reference list available on Microsoft Docs.