diff --git a/Edge_Removal.bat b/Edge_Removal.bat index e7478ee..876aa26 100644 --- a/Edge_Removal.bat +++ b/Edge_Removal.bat @@ -124,6 +124,10 @@ foreach ($b in $bho) { if (test-path $b) { try {copy $b "$DIR\ie_to_edge_stub.ex ## ------------------------------------------------------------------------------------------------------------------------------- ## 4 remove found *Edge* appx packages with unblock tricks +## updated unblock +reg add 'HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev' /v 'AllowUninstall' /t REG_SZ /f >$null +New-Item -Path "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -ItemType Directory -ErrorAction SilentlyContinue -Force >$null +New-Item -Path "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -ItemType File -Name 'MicrosoftEdge.exe' -Force >$null $provisioned = get-appxprovisionedpackage -online; $appxpackage = get-appxpackage -allusers; $eol = @() $store = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore' $users = @('S-1-5-18'); if (test-path $store) {$users += $((dir $store -ea 0 |where {$_ -like '*S-1-5-21*'}).PSChildName)}