A Powershell-Script for removing / debloating Windows 10 apps. Mandatory apps which can't be uninstalled via start menu will be removed too.
Powershell script which deinstalls / removes the preinstalled Windows 10 apps (bloatware), this script can remove even mandatory apps like XBox which can't be deinstalled with normal measures like startmenu, programms and features and so on. Basicly it's debloating your Windows 10 install.
At first, I would suggest that you deinstall all apps which you don't need via the start menu. Hover over the icon in the start menu, right click and choose "deinstall". This is the "normal" way to remove apps which aren't reluctant like the ones this script removes.
If this is your first time executing PowerShell Scripts you have to allow scripts to be executed.
To do this, execute this command in the PowerShell: Set-ExecutionPolicy Unrestricted
.
After using the script you can that the execute level back to "Set-ExecutionPolicy Restricted" if you like.
(More here: http://windowsitpro.com/powershell/running-powershell-scripts-easy-1-2-3 and here: https://technet.microsoft.com/en-us/library/ee176961.aspx)
Copy the script onto your hard drive
Edit the Powershell-Script (Win10AppRemove.ps1) and comment out the apps which you don't want to remove. Just put # before the line with the command like:
#get-appxpackage -allusers alarms | remove-appxpackage
All apps without the comment character will be removed.
Start Windows Power Shell with admin rights (right click and "run as administrator") and start the script. Without admin rights the script will do nothing.
I strongly advise against removing the Windows Store App.
Windows shows compressed files as folders, for files like .cab and .zip.
I personally find this feature very annoying, remove_zip_files_as_folders.reg
uses the Regedit to remove it.
Same for .cab Files -> "remove_cab_files_as_folders.reg"
It's annoying too, so you can use: remove_edit_with_Paint_3D_context_menu.reg
to get rid of it.
For finding errors:
If you don't get any errormessages, remove #$ErrorActionPreference = "SilentlyContinue"
from the script.
I included it, because some apps throw error messages (app is already removed etc.)
which the clear screen command (CLS) can't remove from the console. I don't know why, so I removed the spamming of the console.
Feel free to choose log-spamming or not :-)
In the current version of the script, I keep the weather app because I like it. I would suggest removing Money, News, Sports and Weather apps together and reinstall the weather app again if you want to use it.
Tip: Open all your apps with explorer command shell:appsfolder
To reinstall all apps execute this command: Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
This will restore the default state of all Windows 10 apps.
Get all app packagesnames use the follwing command: Get-AppxPackage -AllUsers | Select Name, PackageFullNameshell:appsfolder
Remove Onedrive from explorer and deinstall Mixed Reality Portal
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Holographic
.After that this you can deinstall, open settings and go to "Mixed Reality". On the left, select Uninstall.
First use "Get-AppxProvisionedPackage -Online" to get the Packagename and then Remove-AppxProvisionedPackage -Online -PackageName For Example: "EMicrosoft.MicrosoftStickyNotes_3.1.46.0_neutral_~_8wekyb3d8bbwe
to remove the Packagefile
Use the script at your own risk, make backups, blah blah. I tested the script, it works for me, but I got only a few Windows 10 PCs to test it and so on.
Suggestions, fixes and new features are welcome, just create an issue: https://github.com/WurstCommander/Win10AppRemove/issues/new
Have a nice day, your Wurstcommander.