Remove apps from Windows 10

Installed vs. provisioned apps

To make a long story short there are different types of Windows 10 “Apps”, as explained here. When we talk about pre-installed apps, such as Candy Crush or Bing Weather, we are either talking about “provisioned apps” or “installed apps”. So what is the difference?

Provisioned apps

As Microsoft put’s it, provisioned apps are “installed the first time you sign into Windows. They lurk in the background and is only installed when a new user account is made. Generally these apps only include Windows original apps such as “Alarms & Clock”, Calculator, or “Paint 3D”.

Installed apps

As Microsoft put’s it, installed apps are “installed as part of the OS”. These apps can be uninstalled through the UI. Here are some examples: Remote Desktop, PowerBI, Code Writer, Eclipse Manager, Pandora, Photoshop Express, Duolingo, Network Speed Test and Paid Wi-FI.

App suggestions

It is also worth mentioning that you might spot some apps in Start that are neither of these two categories. This is because they are “app suggestions” which means that they are only installed once you click on them. If you have activated windows you can turn off this feature.

image

List apps in Windows 10

List provisioned apps for all users:

Get-AppxProvisionedPackage -Online | Select DisplayName, PackageName

List not-provisioned apps for all users:

Get-AppxPackage -AllUsers | Select Name, PackageFullName

List not-provisioned apps for all users (except system vital apps):

Get-AppxPackage -AllUsers | % {if (!($_.IsFramework -or $_.PublisherId -eq "cw5n1h2txyewy")) {$_}} | select PackageFullName

List not-provisioned apps for a spesific user:

Get-AppxPackage –User UserName | Select Name, PackageFullName

Remove apps one by one

Remove a spesific provisioned app (for all users):

Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

Microsoft.Microsoft3DViewer_3.1802.26012.0_neutral_~_8wekyb3d8bbwe is the an example of a PackageName.

Remove any provisioned package that contains e.g Print3D (for all users):

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

Remove specific not-provisioned app (from current user):

Get-AppxPackage *BubbleWitch3Saga* | Remove-AppxPackage

Remove a not-provisioned app (from all users):

Get-AppxPackage -allusers *BubbleWitch3Saga* | Remove-AppxPackage

Remove all apps, but keep some

It would probably make more sense to white list the apps you actually want to have installed and remove the rest with a PowerShell command that removes all apps that so not match your criteria.

Remove most* provisioned apps (for all users):

Get-AppxProvisionedPackage -online | where-object {$_.packagename -notlike "*Microsoft.MicrosoftStickyNotes*"} | where-object {$_.packagename -notlike "*Microsoft.StorePurchaseApp*"} | where-object {$_.packagename -notlike "*Microsoft.WindowsCalculator*"} | where-object {$_.packagename -notlike "*Microsoft.WindowsCamera*"} | where-object {$_.packagename -notlike "*Microsoft.WindowsStore*"} | Remove-AppxProvisionedPackage -online

*This will leave Windows Store, Windows Camera, StorePurchaseApp, Windows Store, StickyNotes, Windows Calculator and apps that ensure good system performance.

Remove most* regular apps (all users):

Get-AppxPackage -AllUsers | % {if (!($_.IsFramework -or $_.PublisherId -eq "cw5n1h2txyewy")) {$_}} | where-object {$_.name -notlike "*Microsoft.WindowsStore*"} | where-object {$_.name -notlike "*Microsoft.WindowsCamera*"} | where-object {$_.name -notlike "*Microsoft.StorePurchaseApp*"} | where-object {$_.name -notlike "*Microsoft.WindowsStore*"} | where-object {$_.name -notlike "*Microsoft.MicrosoftStickyNotes*"} | where-object {$_.name -notlike "*Microsoft.WindowsCalculator*"} | where-object {$_.name -notlike "*Microsoft.MicrosoftEdge*"} | Remove-AppxPackage 

*This will leave Windows Store, Windows Camera, StorePurchaseApp, Windows Store, StickyNotes, Windows Calculator, Edge and apps that ensure good system performance.

Make sure to reboot as some apps will have leftovers in the Start Menu.

Remove all apps

If you really just want to remove all apps (including Windows Store) you can use the commands below.

Remove all not-provisioned apps from all users:

Get-AppxPackage -allusers | Remove-AppxPackage

Remove all provisioned apps (for all users):

Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online

Warning: This command also “unprovisions” the Windows Store app.
{: .notice–danger}

Cortana, Edge and Windows Feedback cannot and should not be removed from Windows 10.
{: .notice–warning}

Apps are gone, but still got Candy Crush in Start?

If you have checked that the app is not in the list of provisioned apps, installed apps or in the Apps & Features list then it is most likely just a leftover start menu item, even if it says that you can uninstall it. You can use Jose Espitias way of making a default start menu for new users.

Here is a basic one:

<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="2" AppUserModelID="Microsoft.WindowsStore_8wekyb3d8bbwe!App" />
          <start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk" />
          <start:Tile Size="2x2" Column="0" Row="0" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
        </start:Group>
      </defaultlayout:StartLayout>
    </StartLayoutCollection>
  </DefaultLayoutOverride>
</LayoutModificationTemplate>

It looks like this:

alt text

Put it in: C:\Users\Default\AppData\Local\Microsoft\Windows\Shell and name it DefaultLayouts.xml

This will only work for new users. If you already have a user you will have to cleanup yourself.

App suggestions in Start

If you still see some dirt make sure you have turned off App Suggestions in Start. It may only be symbolic tiles.

To turn off app suggestions you will have to activate Windows. Then go to Settings -> Personalization -> Start -> Occasionally show suggestions in Start. Or you can use the command:

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d "0" /f

You can also “Turn off Microsoft consumer experiences” in gpedit.msc but Iam not sure what the difference is. You can do this by going to Computer Configuration > Administrative Templates > Windows Components > Cloud Content. Enable the “Turn off Microsoft consumer experiences” policy here. You’ll have to sign out and sign back in after making this change.

So how can you tell a “app suggestion” from an app that is actually installed on the computer?

Easy, just open “Apps & features”. The apps installed will display there, the suggested apps will not. Note that the installed apps will not be displayed in the classic control panels “Programs and Features”.


Sources:

https://4sysops.com/archives/remove-provisioned-built-in-apps-in-windows-10/

https://4sysops.com/archives/how-to-uninstall-all-default-windows-apps-on-windows-10/

https://superuser.com/questions/942418/how-do-you-forcefully-remove-apps-in-windows-10

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

https://gal.vin/2017/04/06/removing-uwp-apps-mdt/

https://blogs.technet.microsoft.com/mniehaus/2015/11/11/removing-windows-10-in-box-apps-during-a-task-sequence/

http://ccmexec.com/2015/08/removing-built-in-apps-from-windows-10-using-powershell/

http://www.scconfigmgr.com/2016/03/01/remove-built-in-apps-when-creating-a-windows-10-reference-image/

http://www.joseespitia.com/

https://winpeguy.wordpress.com/

https://blog.danic.net/provisioned-apps-in-windows-10-pro/

https://docs.microsoft.com/en-us/windows/application-management/apps-in-windows-10#installed-windows-apps

https://docs.microsoft.com/en-us/windows/client-management/mdm/applocker-csp

https://trustedwindows.wordpress.com/2016/08/17/apps-apps-und-apps/