My Windows 10 app removal script

This script will work with Windows 10 version 1703, 1709 and 1803.

This script will search for any app containing text such as for example “BingNews” and remove it from all users. It will also remove the app even if it is a “provisioned” app.

A word of warning: using this script means that if you remove a system app that is not avalable to download from the MS Store you will not be able to retrieve it and the only way to get it is reinstalling windows!

I have “commented out” all apps that I strongly advise you to leave installed. They won’t take up any space in Start and these apps cannot be downloaded once removed so you are probably better off with them.

Some apps cannot be removed and should not be removes such as Store, Edge and Cortana.

If you want to leave an app installed just comment out (put a #-symbol before) the app.

The registry modifications makes sure that “app suggestions” won’t show in Start. I have also added some other minor registry tweaks that will make the Windows experience more “classic”.

# Remember to run set-executionpolicy remotesigned -force first
set-executionpolicy remotesigned -force

# Remove applications
$apps = @(

# Stuff you should really not remove

# "AccountsControl"
# "Advertising.Xaml"
# "Appconnector"
# "Apprep.ChxApp"
# "AssignedAccessLockApp"
# "AsyncTextService"
# "BioEnrollment"
# "BrokerPlugin"
# "CBSPreview"
# "CloudExperienceHost"
# "CommsPhone"
# "ConnectivityStore"
# "ContactSupport"
# "ContentDeliveryManager"
# "Cortana"
# "CredDialogHost"
# "DesktopAppInstaller"
# "ECApp"
# "HolographicFirstRun"
# "immersivecontrolpanel"
# "InputApp"
# "LanguageExperiencePacken-gb"
# "LockApp"
# "MicrosoftEdge"
# "MicrosoftEdgeDevToolsClient"
# "NET.Native.Framework"
# "PeopleExperienceHost"
# "PPIProjection"
# "PrintDialog"
# "PrinterUtility"
# "SecHealthUI"
# "SecondaryTileExperience"
# "SecureAssessmentBrowser"
# "Services.Store.Engagement"
# "ShellExperienceHost"
# "StorePurchaseApp"
# "VCLibs.120.00"
# "VCLibs.120.00.Universal"
# "VCLibs.140.00"
# "VCLibs.140.00.UWPDesktop"
# "Wallet"
# "WebMediaExtensions"
# "Win32WebViewHost"
# "WindowsStore"
# "Xbox.TCUI"
# "XboxGameCallableUI"
# "XboxGameOverlay"
# "XboxGamingOverlay"
# "XboxIdentityProvider"
# "XboxSpeechToTextOverlay"
# "OOBENetworkCaptivePortal "
# "OOBENetworkCaptivePortal"
# "OOBENetworkConnectionFlow"
# "ParentalControls"
# "PinningConfirmationDialog"
# "SuiteEssentials"


# Stuff you might consider removing...

# "MicrosoftStickyNotes"
# "Windows.Photos"
# "People"
# "GetHelp"
# "Getstarted"
# "WindowsAlarms"
# "WindowsCalculator"
# "WindowsCamera"
# "windowscommunicationsapps"
# "WindowsFeedback"
# "WindowsFeedbackHub"
# "WindowsMaps"
# "WindowsPhone"
# "XboxApp"
# "Messaging"
# "OneConnect"

# Apps that are super safe to remove!
"3DBuilder"
"6Wunderkinder"
"ActiproSoftwareLLC"
"AdobePhotoshopExpress"
"AdobeSystemsIncorporated"
"Asphalt8Airborne"
"AutodeskSketchBook"
"BingFinance"
"BingFoodAndDrink"
"BingHealthAndFitness"
"BingNews"
"BingSports"
"BingTranslator"
"BingTravel"
"BingWeather"
"BubbleWitch3Saga"
"CaesarsSlotsFreeCasino"
"CaesarsSlotsFreeCasino"
"CandyCrushSaga"
"CanonOffice"
"CapturePicker"
"ClearChannelRadio"
"ClearChannelRadioDigital"
"CyberLinkMedia"
"DisneyMagicKingdoms"
"DolbyAccess"
"DolbyLaboratories"
"Drawboard"
"drawboardPDF"
"Duolingo"
"Duolingo-LearnLanguagesforFree"
"EclipseManager"
"Facebook"
"FarmVille"
"flaregamesGmbH"
"Flipboard"
"FreshPaint"
"GAMELOFTSA"
"HiddenCityMysteryofShadows"
"iHeartRadio"
"Keeper"
"king.com"
"MarchofEmpires"
"Microsoft3DViewer"
"MicrosoftOfficeHub"
"MicrosoftPowerBIForWindows"
"MicrosoftSolitaireCollection"
"Minecraft"
"MSPaint"
"Netflix"
"NetworkSpeedTest"
"NYTCrossword"
"Office.OneNote"
"Office.Sway"
"PandoraMediaInc"
"PhotoStudio"
"PhototasticCollage"
"PicsArt"
"Playtika"
"Print3D"
"RemoteDesktop"
"RoyalRevolt2"
"Shazam"
"ShazamEntertainmentLtd"
"SkypeApp"
"SodaSaga"
"SpotifyAB"
"SpotifyMusic"
"TheNewYorkTimes"
"ThumbmunkeysLtd"
"TuneIn"
"Twitter"
"WindowsReadingList"
"WindowsSoundRecorder"
"WinZipComputing"
"WinZipUniversal"
"Wunderlist"
"XING"
"XINGAG"
"XINGAG.XING"
"ZuneMusic"
"ZuneVideo"
)

foreach ($app in $apps) {
Write-Output "Trying to remove $app"

Get-AppxPackage *$app* | Remove-AppxPackage
Get-AppxPackage -allusers *$app* | Remove-AppxPackage
Get-AppxProvisionedPackage -online | where-object {$_.packagename -like "*$app*"} | Remove-AppxProvisionedPackage -online

}

# Restart Windows Explorer
Stop-Process -ProcessName explorer

Running these commands works very well in Windows 10 v. 1709 as of 2018.04.15. The only caveat here is that some tiles will be left in the start menu even if the apps are removed. If you make a new user profile the tiles should be gone though. But for the user profile you are currently in you will have to cleanup the Start manually. Once you have done this you can copy your Start layout to the default user profile so that all new user profiles will have the same layout.

I usually do this by editing tiles and stuff in Start and then run:

Export-StartLayout –path C:\LayoutModification.xml
Copy-Item C:\LayoutModification.xml -destination C:\Users\Default\AppData\Local\Microsoft\Windows\Shell
Remove-Item C:\LayoutModification.xml

Example:

<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
  <LayoutOptions StartTileGroupCellWidth="6" />
  <DefaultLayoutOverride>
    <StartLayoutCollection>
      <defaultlayout:StartLayout GroupCellWidth="6">
        <start:Group Name="">
          <start:Tile Size="4x2" Column="0" Row="0" AppUserModelID="Microsoft.WindowsStore_8wekyb3d8bbwe!App" />
          <start:DesktopApplicationTile Size="2x2" Column="4" Row="0" DesktopApplicationLinkPath="%APPDATA%MicrosoftWindowsStart MenuProgramsSystem ToolsFile Explorer.lnk" />
        </start:Group>
      </defaultlayout:StartLayout>
    </StartLayoutCollection>
  </DefaultLayoutOverride>
</LayoutModificationTemplate>

Will produce:

Now the Sart Menu will be copied to all new users.

To add a new user (with admin rights) I just use:

net user User2 /add & net localgroup administrators User2 /add


Sources:

https://blog.danic.net/how-windows-10-pro-installs-unwanted-apps-candy-crush-and-how-you-stop-it/