<# .SYNOPSIS Removes homepage policies from the registry for Microsoft Edge (Chromium) .EXAMPLE This will remove all homepage policies for the browser. Remove-EdgeHomepage.ps1 .OUTPUTS Outputs to the standard log file. #> ### Bootstrap ### if(-not $bootstrapLoaded) { [Net.ServicePointManager]::SecurityProtocol = [Enum]::ToObject([Net.SecurityProtocolType], 3072) Invoke-Expression (New-Object System.Net.WebClient).DownloadString("https://file.provaltech.com/repo/script/Bootstrap.ps1") Set-Environment $powershellTargetVersion = 3 Update-PowerShell if($powershellUpgraded) { return } if($powershellOutdated) { return } } else { Write-Log -Text "Bootstrap already loaded." -Type INIT } ### Process ### $regLocation = 'HKLM:\Software\Policies\Microsoft\Edge' Write-Log -Text "Removing mandated homepage." -Type LOG Remove-ItemProperty -Path $regLocation -Name HomepageLocation Remove-ItemProperty -Path $regLocation -Name HomepageIsNewTabPage Write-Log -Text "Removing tab enforcement." -Type LOG Remove-ItemProperty -Path $regLocation -Name NewTabPageLocation Write-Log -Text "Removing startup enforcement." -Type LOG Remove-ItemProperty -Path $regLocation -Name RestoreOnStartup $restoreURLsPath = "$regLocation\RestoreOnStartupURLs" if(Test-Path -Path $restoreURLsPath) { Remove-Item -Path $restoreURLsPath }