Remove Mixed Reality portal in Windows 10 1703 and ”stuborn” apps

In previous versions of Windows 10, before 1703 built-in apps that couldn’t be uninstalled could still be blocked with Applocker so that they never got installed and it has worked great! With Windows 10 1703 there are two apps that I have identified as not being able to uninstall, it is not a Windows Capability which we can block that way. The result I am seeing when blocking for instance and Connect and Mixed reality portal using Applocker is this.

NOTE: This should NOT be used with Windows 10 1709 as it will block installation of Cumulative Updates!!

To make it possible to install the Cumulative update we need to put back the files we removed, then the KB4051963.

Here is a script that be run before applying the update to copy back the files needed.

#Script to put back stuborn apps
$FolderExist = Test-Path C:\Windows\Systemapps\Microsoft.Windows.HolographicFirstRun_cw5n1h2txyewy
If ($FolderExist -eq $True) { takeown /f C:\Windows\SystemApps\Microsoft.Windows.HolographicFirstRun_cw5n1h2txyewy\*.*
icacls C:\windows\systemapps\Microsoft.Windows.HolographicFirstRun_cw5n1h2txyewy\*.* /grant ‘System:(F)’
Remove-Item -Path C:\Windows\SystemApps\Microsoft.Windows.HolographicFirstRun_cw5n1h2txyewy -Recurse }
$me = $MyInvocation.MyCommand.Name
Copy-Item -Path “$($PSScriptRoot)\*” -Destination “C:\Windows\SystemApps” -Recurse -Force -Exclude “$($me)” -ErrorAction Stop

Place the folders that we remove from another Windows 10 1709 machine. So it looks like this, then it can be deployed by using a package/program


Applocker block

Me and Johan Schewelius wrote a small .cmd file that simply deletes the app after the image has been applied on the disk during OS deployment and then the app is simply never installed.

This is highly unsupported so use it at your own risk!

DisarmStuborn apps1

And from the Task Sequence we call it after the Operating System has been applied.

DisarmStuborn apps

Then the app cannot be installed during setup.

Again this is unsupported use at your own risk!!


Add a Comment

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