Forum Discussion
NewbUser
Dec 13, 2020Copper Contributor
is it possible to disable the "Restore pages" message?
Edge boots with a restore pages message constantly, which doesn't go away unless you click on it. There seem to be many options to disable it on chrome and chromium, but haven't found any that wo...
jjschweigert
Nov 08, 2021Copper Contributor
NewbUser from reading this post it looks like there is not a baked in setting to do this or even a reg hack. However here is some powershell code I found that will close all edge processes, including open windows, gracefully. By gracefully I mean once the windows close and I reopen them I do not see the restore pages prompt. Also I tested this with Close-Process in powershell and found that the restore pages prompt still appears on reopening edge.
$edgeProcesses = Get-Process msedge -ErrorAction SilentlyContinue
if($edgeProcesses.Count -le 0)
{
Write-Verbose -Verbose "No edge processes were found"
#exit
}
while($edgeProcesses.Count -gt 0)
{
foreach($process in $edgeProcesses)
{
$process.CloseMainWindow() | Out-Null
}
$edgeProcesses = Get-Process msedge -ErrorAction SilentlyContinue
}
- saczoneMay 14, 2022Copper Contributorthis worked for me, thanks buddy
- Vinod7Oct 11, 2022Brass ContributorThere is a new GPO that will help to fix these
https://learn.microsoft.com/en-us/deployedge/microsoft-edge-policies#hiderestoredialogenabled- jjschweigertOct 25, 2022Copper ContributorThank you Vinod, this worked nicely 🙂