
} While (!(Test-Path -path "HKCU:\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe") -and $Exhausted -lt 31) PowerShell Script to Prevent Edge Loading “C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe” Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter” /v EnabledV9 /t REG_DWORD /d 0 /f /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Software\Policies\Microsoft\MicrosoftEdge\SearchScopes” /v ShowSearchSuggestionsGlobal /t REG_DWORD /d 0 /f /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SettingSync” /v DisableSettingSyn /t REG_DWORD /d 2 /f /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main” /v AllowPopups /t REG_SZ /d no /f /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\TabPreloader” /v AllowTabPreloading /t REG_DWORD /d 0 /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main” /v AllowPrelaunch /t REG_DWORD /d 0 /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\NewOS\Microsoft\Windows\CurrentVersion\Explorer” /v DisableEdgeDesktopShortcutCreation /t REG_DWORD /d 1 /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\DEFAULT\Software\Policies\Microsoft\MicrosoftEdge\Main” /v PreventFirstRunPage /t REG_DWORD /d 1 /f

Reg load “HKEY_LOCAL_MACHINE\DEFAULT” C:\Users\Default\ntuser.dat

Reg add “HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main” /v PreventFirstRunPage /t REG_DWORD /d 1 /reg:64 /f Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main” /v PreventFirstRunPage /t REG_DWORD /d 1 /reg:64 /f
