Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
CCMEXEC.COM – Enterprise Mobility

Windows 10 remove builtin apps script with multiple version support

Posted on April 17, 2018March 17, 2021 by Jörgen Nilsson

I wrote a script before on how to remove builtin apps in Windows 10 that was based on Ben Hunter’s script to do the same https://ccmexec.com/2015/08/removing-built-in-apps-from-windows-10-using-powershell/

As always, make sure you uninstall what you really need some apps can be reinstalled from the Store some are harder or impossible to get back.

Not everything we can/want to remove are Apps, some of the Apps are installed as “Capabilities” instead and can be removed with PowerShell as well. Quickassist is a Windows Capability for instance. To list all Windows capabilities on a Windows 10 Computer runt he following PowerShell command.
“Get-WindowsCapability -Online”

With each new version of Windows 10 there are new apps that can/should be removed from a Windows 10 enterprise client. I have re-written the script so it reads the Capabilities to remove from one text-file and the apps to uninstall from another text file. These text files needs to have the Windows 10 build-number in the file name so that we can use the same Task Sequence step for multiple Windows 10 versions without have to create modify the script itself as shown below.

The script can be downloaded from here: https://github.com/Ccmexec/MEMCM-OSD-Scripts

In the Task Sequence we can now have one step that runs the Powershell script and the script will uninstall different apps based on the Windows 10 Build number it is running on like shown below.

 The script will also create a log file in C:\Windows\temp with the name RemoveApps_Buildnr as shown below. It could have been placed in the SMSTSLOG folder as well but thought it is better placed in C:\Windows\Temp.

When a new version of Windows 10 is released we simply do the following:

  1. Deploy a Windows 10 with the new build without removing any apps.
  2. Run the following Powershell command:
    $Appx = Get-AppxPackage | select name
    $appx | Out-File -FilePath C:\temp\Appx.txt
  3. Then we take the Appx.txt file and remove all the apps from the list that should NOT be removed, so the list only contains apps that we want to remove.
  4. Save the file in the Package Source folder with the name Apps17999 where “17999” is the buildnumber.
  5. Then we copy one of the Capabilities files so there is a Capabilities17999 file as well.
  6. Update the package on the DP’s and test the script.

That gives us a more flexible and simple way to handle the removal of builtin apps.

I hope it is useful!

  • Remove Apps
  • Remove Builtin Apps
  • Windows 10
  • 38 thoughts on “Windows 10 remove builtin apps script with multiple version support”

    1. Quinn says:
      April 18, 2018 at 1:44 am

      Excuse my ignorance but what/where are the capabilities file(s)?
      Thanks

      Reply
      1. Jörgen Nilsson says:
        April 18, 2018 at 2:10 pm

        Hi,
        thanks for the feedback! I will update the blog post on Capabilities.
        Regards,
        Jörgen

        Reply
    2. Marcel says:
      April 26, 2018 at 11:12 am

      Always nice to read another post. Will you make some about your current task sequence and what each step does, for instance the ‘EdgeWelcome’ step?

      Reply
      1. Jörgen Nilsson says:
        June 1, 2018 at 9:42 am

        Hi
        Yes I will try to write a post in that.
        Regards,
        jörgen

        Reply
      2. James says:
        August 15, 2018 at 8:16 pm

        I would also love to see which steps do what during OSD. This looks very different from our TS that we use to deploy clients.

        Reply
    3. Pål says:
      June 7, 2018 at 10:38 am

      Hi Jörgen, great work as always. 2 brief questions:
      1) Do you have a better site than Microsofts list of Win10 apps (https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10) explaining each component/app (and ideally with comments on whats safe to remove and what isn’t)

      2) Removed apps returning has been an issue on previous builds, any comment on the need to add regkeys as explained in this article in your script to ensure the removed apps stay removed? https://docs.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update

      Reply
      1. Neil says:
        May 3, 2019 at 12:55 am

        Have a look at my post in the comments here: https://ccmexec.com/2019/04/updated-removeapps-script-for-windows-10-1903/

        I have made updated the script to implement the Microsoft workaround to prevent apps reappearing on pre-1803 versions of Windows 10.

        If you can’t find the script, I have also copied it here: https://gist.github.com/wizzkidd/dae414d721560d3fec8b1c652436709c

        Reply
    4. Rodrigo Fronza says:
      July 20, 2018 at 3:49 pm

      Great job Jörgen Nilsson

      Reply
    5. Alex says:
      September 14, 2018 at 9:08 pm

      Hi Jörgen, I find your task sequence very, very, interesting. I mean, I can tell there is a huge difference between yours and the default TS from MDT. I recently started to add more tasks into my task sequence to order to do more automatic configuration. But, as I read more of your blogs, I can see there are a lot of good ideas in your TS. Will you mind to share? or doing a blog about them? Thanks!

      Reply
    6. Tom says:
      September 20, 2018 at 10:48 am

      one important thing:
      if you install PCs like that, and a domain user logs into his new win10 PC for the first time, he get’s the win10 default start menu layout. There will be empty icons pointing to nowhere, if you remove the apps? Like the email app. The link will be visible, it won’t even be called “mail” but some random string like windows.app.4249fhehcudfhdfvd.file . How to avoid this without setting up a static startmenu?

      Reply
      1. Jörgen Nilsson says:
        September 24, 2018 at 1:00 pm

        Hi,
        The best way to solve your scenario is to import a custom start-layout that is used per default for the user and in that case the end-user can change it as well.
        Regards,
        Jörgen

        Reply
    7. Jose Roman says:
      October 6, 2018 at 2:53 pm

      Mr. Jörgen Nilsson, this is AWESOME !!!.
      this method not only works, it resolved the many challenges I was facing with others scripts. So thank you and keep the excellent work.
      PS: I had implemented a lot of your post to our environment and they all works 🙂

      Reply
    8. STRiCT says:
      December 7, 2018 at 11:59 pm

      Is it possible to ‘comment’ out what apps we want to keep in the txt files rather than delete them? The idea being able to keep track of what we decided to include.

      Reply
      1. Jörgen Nilsson says:
        January 13, 2019 at 10:59 pm

        Hi,
        Not in the current state but I will keep it in mind when updating it.
        Regards,
        JÖrgen

        Reply
    9. STR1CT says:
      December 12, 2018 at 8:43 pm

      Running 1803 and Mixed Reality Portal will not uninstall. Microsoft.MixedReality.Portal is not listed as an app in Get-AppxPackage. Wondering if anyone else is having trouble getting rid of Mixed Reality Portal?

      Reply
    10. MelQ says:
      January 5, 2019 at 6:27 am

      Thank you so much for your work on this. This is extremely helpful.
      One minor comment is that in your download files, Capabilites17763.txt lists App.Support.ContactSupport as a capability to remove. I wasn’t seeing App.Support.ContactSupport in the list returned by GetWindowsCapability on an 1809 machine without capabilities removed yet. According to https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10, it looks like App.Support.ContactSupport changed to the provisioned app GetHelp starting in 1709. So, I don’t think App.Support.ContactSupport should be in the Capbilities.txt files from 1709 on.

      Reply
    11. Soumitra says:
      February 7, 2019 at 2:51 pm

      Hi Jorgen,

      Thanks for this article. I was trying to run the script after installing Windows 10 1809 (not adding in TS) and it gives me the below error.

      Remove builtin apps based on Microsoft.Wallet Microsoft.Messaging Microsoft.MixedReality.Portal Microsoft.StorePurchaseApp microsoft.windowscommunicationsapps Microsoft.GetHelp Microsoft.WindowsMaps Microsoft.Office.OneNote Microsoft.XboxApp Microsoft.ZuneMusic Microsoft.YourPhone Microsoft.OneConnect Microsoft.WindowsAlarms Microsoft.People Microsoft.MicrosoftOfficeHub Microsoft.WindowsFeedbackHub Microsoft.SkypeApp Microsoft.Microsoft3DViewer Microsoft.WindowsCamera Microsoft.MicrosoftSolitaireCollection Microsoft.BingWeather
      Unable to find package: Microsoft.Wallet

      Removing Provisioned Package: Microsoft.Wallet_2.2.18179.0_neutral_~_8wekyb3d8bbwe

      Path :
      Online : True
      RestartNeeded : False

      Unable to find package: Microsoft.Messaging

      Removing Provisioned Package: Microsoft.Messaging_2018.727.1430.0_neutral_~_8wekyb3d8bbwe

      Path :
      Online : True
      RestartNeeded : False

      This is for all of them. I checked the Apps are there but not removed. Is it something which needs to be run only from TS?

      Reply
      1. Jörgen Nilsson says:
        February 18, 2019 at 11:57 pm

        Hi,
        It should still work depending on the permissions you run it with.. The package it is removing is for the current user and the provisioned package for all new users. So it will most likely not work as fully expected. and it looks like it is doing some parts in your post above.
        /Jörgen

        Reply
    12. Tom says:
      February 14, 2019 at 11:30 am

      works well,
      if i log in as a user, i still have 2 placeholders in the taskbar for “Mail” and the store, these are invisible, but physically there, i cant remove them; how to deal with that ?

      Reply
    13. Jonathan says:
      February 18, 2019 at 2:20 pm

      Has anyone noticed that scripts to remove AppX seem to have stopped working in Windows 10 1809 from version 17763.253 (I have tested 17763.253, 17763.292 and 17763.316?

      My own script (similar to this one) and also the script used in this article are failing fairly randomly for me when any LCU’s are applied from January 2019 onwards. Same script works on all other Windows 10 version I have tried (including 17763.195 which works just fine).

      Reply
      1. Jörgen Nilsson says:
        February 18, 2019 at 11:54 pm

        Hi,
        yes seeing the same, getting it reported from everywhere, haven’t had time to investigate it though but reports tell me that running it as early as possible in the TS works much better..
        I will investigate it as well..
        Regards,
        Jörgen

        Reply
        1. Michael Pennington says:
          June 10, 2019 at 4:21 pm

          I was having the same issue with fast (SSD) machines. I found applying the April cumulative update and associated other updates made it work. This solution seems to be stable now. My TS now has the following in order:
          Setup Windows and Configuration Manager
          %systemroot%\System32\wusa.exe windows10.0-kb4480056-x64_03a6d426797796ba712e4dbd05b56fd9cbfc2e24.msu /quiet /norestart
          %systemroot%\System32\wusa.exe windows10.0-kb4486553-x64_0c3111b07c3e2a33d66fed4a66c67dec989950a0.msu /quiet /norestart
          %systemroot%\System32\wusa.exe windows10.0-kb4493509-x64_ec069505eddfb9175e376b7eea773182d06033f0.msu /quiet /norestart
          %systemroot%\System32\wusa.exe windows10.0-kb4493510-x64_f692d391a4869d910c754895169dbd0d237a86da.msu /quiet /norestart
          Restart Computer
          Windows 10 App Removal Script

          Reply
      2. Robert says:
        March 7, 2019 at 10:08 am

        Hi
        I have the same issue, have you found any solution?
        The problem seems to affect DELL computers only.

        Reply
    14. Frederik says:
      February 20, 2019 at 10:35 am

      Same problem, don’t find a reason

      Reply
    15. Kent says:
      February 27, 2019 at 10:05 am

      I moved the Remove AppX almost right after applying OS image. So far I’ve not had any issues. However I see other things that does not work as they did with 1709, i,e: OneVinn OSDBackground. My build is: 17763.316

      Reply
      1. Jörgen Nilsson says:
        March 1, 2019 at 3:46 pm

        HI,
        Have you updated OSDBackground to the latest version?
        Regards,
        Jörgen

        Reply
    16. Kent says:
      March 18, 2019 at 10:12 am

      Hi Jörgen, I am in the process of updating it right now. I was using a older version which probably explains the error.

      Reply
    17. Pingback: How to customize Windows 10 using Intune and Autopilot
    18. Pingback: Updated Removeapps script for Windows 10 1903 – CCMEXEC.COM – Enterprise Mobility
    19. Anhtony says:
      April 29, 2019 at 4:09 pm

      Thanks for this awesome script, however I’m stuck on how to implement it in my task sequence. I noticed that you created a package called “Windows 10 Remove Apps”. How do I configure the package? Do you specify the powershell script in the package? Do you have a step by step guide on what you did so that I can mimic it exactly? Thank you.

      Reply
      1. Anhtony says:
        May 1, 2019 at 3:02 pm

        I figured it out. You just need to create a package without a program and point to where your source files are on the server. Then in the task sequence you point to the package, and the name of the script…that’s it.

        Reply
    20. Jim says:
      June 21, 2019 at 9:52 pm

      This script as well as other scripts to remove default Windows 10 1809 apps still doesn’t seem to be working. Has anybody gotten any script to work recently?

      Reply
    21. Mike says:
      June 28, 2019 at 11:09 pm

      Jörgen
      I am building a ref image using MDT and windows 10 1809
      The script runs but after the first login a user has icons that have a down arrow and they seem to come back.
      the real problems are
      network speed test
      the office lens
      Microsoft News
      sway.

      any ideas?

      Reply
      1. Jörgen Nilsson says:
        August 14, 2019 at 10:40 am

        Hi,
        Yes when removing apps, you must deploy a custom start menu as well otherwise you will see these missing icons, that is solved in 1903 though.
        Regards,
        Jörgen

        Reply
    22. Brad says:
      October 29, 2020 at 11:54 am

      Hey guys, if you would like this script to work with the new Windows 10 “20H2” release then you need to copy and paste the most recent text files and rename them 19042

      Reply
    23. Pingback: Windows 11 customizations a first look - CCMEXEC.COM - Enterprise Mobility
    24. Pingback: Remove the chat icon in Windows 11 Start menu using GPO/Intune - CCMEXEC.COM - Enterprise Mobility
    25. Pingback: Remove built-in apps in Windows 11 22H2 during OSD - CCMEXEC.COM - Enterprise Mobility

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
    All code is provided "AS-IS" with no warranties.

    Recent Posts

    • Community tools demoed at WPNinjas 2023
    • PowerShell script to keep Personal Teams away in Windows 11
    • Windows 11 Multi-App kiosk – a first look
    • Playing around with Driver Updates in Intune
    • MMUGSE – Summer Meetup 8th of June 2023

    ©2023 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
    This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
    Privacy & Cookies Policy

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
    Non-necessary
    Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
    SAVE & ACCEPT