Share via


how to restart edge browser in safe mode

Question

Wednesday, August 19, 2015 4:37 PM | 9 votes

By accident, I typed a wrong web address and edge entered a malicious web site. The site pop up a dialog asking you to call. The dialog will never go away if you click the button. The browser is unusable due to the pop up dialog, and you cannot do anything. Restarting edge, it will reopen the dialog, and everything repeats.

Is there a command line or other option for edge to allow you to restart in safe/clean mode and do not reopen the previous web site?

Thanks.

All replies (36)

Wednesday, August 19, 2015 4:44 PM âś…Answered | 16 votes

OK. Found this 'start microsoft-edge:http://www.cnn.com' to start in cmd line mode, which fixed this issue.


Wednesday, August 19, 2015 4:40 PM | 1 vote

I know for IE you can still open internet options to reset the browser. Can you type in internet options in your windows search bar and apply it to the same for Edge? Just a thought.


Wednesday, August 19, 2015 4:41 PM

you should try to reset browser settings or go back to the last restore point


Wednesday, August 19, 2015 4:43 PM

Are you unable to click on any settings while the edge browser is open?


Wednesday, August 19, 2015 4:46 PM

Great idea!


Wednesday, August 19, 2015 4:46 PM

As I mentioned, the pop up dialog will not allow you to do anything, including opening the setting dialog.

Anyway, the cmd line fixed the issue.


Wednesday, August 19, 2015 4:48 PM

there is no direct method available to stop Edge restoring the tabs. Edge browser will always open to a single tab, even if you force closed it or it crashed. However there are registry tweaks that you can do to achieve this.

Reply if you need to still alter these settings in Registry which is the database of all your computer's important settings.

Regards,

Hema Senthilkumar


Wednesday, August 19, 2015 4:49 PM | 13 votes

OK. Found this 'start microsoft-edge:http://www.cnn.com' to start in cmd line mode, which fixed this issue.

Good fix! For information Edge store this temp data in

C:\Users\username%\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Recovery\Active

So deleting all files and folders in there makes it open without any previous tabs.


Wednesday, September 30, 2015 6:55 PM

I just had the exact same problem!  Thank you for the fix!


Monday, October 12, 2015 7:45 PM

Thanks! It worked.


Sunday, November 15, 2015 7:24 PM

Thanks so much! 


Thursday, November 19, 2015 3:32 AM

We would advice against tampering the registry or file system. The specific issue here with malicious websites throwing infinite dialog boxes in Edge has been addressed with the update we shipped in September. Please check Windows Update if you are still seeing this issue. You will now instead be a given an option in the Pop-up dialog itself that allows you to block the site from showing you the dialog box again.

If you have all updates installed and still see this issue, please report using

https://support.microsoft.com/en-us/kb/930167

Rajkumar Mohanram [MSFT]


Friday, January 22, 2016 5:44 PM

Can you walk me through what that means exactly. Those instructions are not very concise.


Friday, January 22, 2016 7:47 PM

Can you walk me through what that means exactly. Those instructions are not very concise.

Thinking you mean just open Edge without the previous tabs. Right click the start button, select Command Prompt. Copy and paste the following;

start microsoft-edge:http://www.microsoft.com

Press enter. Edge should open to Microsoft.com only. Close Edge, re-open it should open as normal then. BTW I pick the MS site as this a MS forum, any site would do in that command.


Monday, February 1, 2016 3:50 AM

Not really. just hit this myself. went to autotrader.com with letter c in the beginning (dont go there - it's scam site) by accident. Because edge wants to reopen all previous tabs, there was no way out. I had to clean up that folder referenced above to get out of the situation.


Monday, February 1, 2016 3:51 AM | 1 vote

this didnt work on a fully patched system. Second attempt still loads the bad tab also.


Monday, February 1, 2016 2:10 PM

Right click the start button, select Command Prompt. Copy and paste the following;

start microsoft-edge:http://www.microsoft.com

Does that open clean? If not do a full scan with a malware program such as Malwarebytes

as suspect it has infected the system greater than the tabs in that case.


Friday, April 1, 2016 4:17 PM

Wow! That method worked for me -- thank you so much!


Friday, April 1, 2016 5:07 PM

I have used the dialog box option. Selecting the option did not stop the pop-ups from the malicious site.


Thursday, April 14, 2016 2:43 PM

By accident, I typed a wrong web address and edge entered a malicious web site. The site pop up a dialog asking you to call. The dialog will never go away if you click the button. The browser is unusable due to the pop up dialog, and you cannot do anything. Restarting edge, it will reopen the dialog, and everything repeats.

Is there a command line or other option for edge to allow you to restart in safe/clean mode and do not reopen the previous web site?

Thanks.

If you have Edge set as your default web browser, the simple way to get out of these pickles is to use CTRL-ALT_DEL, choose the task manager and use it to force Edge to close down. Then find an email with a browsing link in it that you know is clean and click it. This will open Edge with the focus locked on the clean link and you will be able to close down the rogue tabs. Then close Edge down and restart it and you will be clear.

Ed Form


Tuesday, May 3, 2016 4:34 PM

So, does this process close the tab that incorporated the malware?  It is pretty bad when I have to go to task manager to shut an application to regain control of it.

Henry


Tuesday, May 3, 2016 4:39 PM

Yes.  Once the malware starts the message you are completely locked out of controling Microsoft Edge from within the application.  I had to kill the application from within task manager just to kill the annoying audio.

When I reopened edge the whole process started over again.  I had multiple tabs open at the time I opened the bad link.  I was searching for PHP software classes at the time.   

Henry


Tuesday, May 3, 2016 4:40 PM

So what are the internet options for edge?

Henry


Tuesday, May 3, 2016 4:50 PM

Reword this to make it clearer.  

If Microsoft Edge is your default browser then you may force Edge to open to a new URL by typing the new URL into the command line option "run", which you get to by right-clicking the Windows Icon, lower left corner of the screen (Windows 10 ... at least).  This causes Edge to open to that site, giving that tab control.  Other tabs will still be there, so make sure to close them by clicking the "X" to close the other tabs without actually going to those tabs.

Henry


Tuesday, May 3, 2016 4:52 PM

I tried the Windows search bar.  That did not work for me.  What did work was entering another URL in the "Run" bar.

Henry


Wednesday, December 7, 2016 9:08 PM | 1 vote

Deleting those files seems to have solved the problem.  Thanks!


Thursday, December 8, 2016 9:34 PM

The specific issue here with malicious websites throwing infinite dialog boxes in Edge has been addressed with the update we shipped in September.

Evidently another exploit has been discovered.  I went unsuspecting to another site recently and saw this on 14393.447.  As others have commented the most obnoxious aspect of it is the audio that goes with it.  So, it is easily worked around but jarring even though I know it is a scam.  I sympathize with the poor unsophisticated user who encounters these things and thinks the "problem" is real.

Robert Aldwinckle


Tuesday, January 17, 2017 7:55 PM | 1 vote

Deleting the files in the AppData folder resolved the issue for me.  I also ran Disk Cleanup and a virus scan just to make sure.  Thanks!


Thursday, February 2, 2017 6:31 PM

Thank youuuuuuuuuuuuuuu. Had the exact same issue... was on a video conversion page to turn mp4 to mpg and it spawned an ad page with an alert that required to be clicked to close... was not gunna click that crap.


Sunday, March 19, 2017 8:20 PM

If you have CCleaner installed. Then close the Edge browser by using ctrl, alt, Delete click on the edge icon and towards the bottom of that screen click on End Process. Now run CCleaner click on Run Cleaner. Your done. You should now have a clean Edge browser ready to go!


Tuesday, June 13, 2017 5:07 AM

Close down Edge by doing ctrl alt del to enter the task manager mode. Take your system offline by removing the modem or router cable from your system. Reopen edge and you will see your original home page and the malicious page trying to open. Close them both with the X on each one. Put your system back online. Open Edge.


Friday, September 22, 2017 6:32 PM

Update to Edge was the right way to fix it. Unfortunately the problem is back again in W10 as of Sep 2017, all updates current, McAfee virus updates current. Hacking the registry seems too risky. Removing the temp files is questionable since now they are in some different location than when these tips were written in 2015. The tip to open Edge through a known safe email link to change the focus away from the hijacked web site still works, and seems best. Another choice would be simply to change your default browser to Google Chrome until you're certain that Microsoft has pushed out another and longer lasting fix to Edge.

Another issue. If you don't manage to get to Task Manager quickly enough to kill Edge, then you'll find in addition to that rogue process, dozens of file selector processes running which also need to be killed.


Wednesday, September 27, 2017 9:53 PM

Two years later, I have all the updates and Microsoft Edge is STILL GETTING HIGHJACKED by kiddie javascript malware ads.

The solution is to logout (which forces the Edge to end) then open a command prompt and delete everything here:

C:\Users\ user >\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default>

Sure, it's kind of a nuclear option. But Edge has been pwn'd by these malware scripts since it's inception.


Thursday, September 28, 2017 12:55 PM

Two years later, I have all the updates and Microsoft Edge is STILL GETTING HIGHJACKED by kiddie javascript malware ads.

The solution is to logout (which forces the Edge to end) then open a command prompt and delete everything here:

C:\Users\ user >\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default>

Sure, it's kind of a nuclear option. But Edge has been pwn'd by these malware scripts since it's inception.

Do not see this myself, can you advise what sort of sites you are on when Edge gets hijacked?


Friday, February 1, 2019 8:06 PM

I made a folder and copied the data over so I could keep troubleshooting the issue to determine how the data become corrupted but this fixed repeated crashes of Edge for me as well thanks.

Mark R Bracking


Wednesday, October 2, 2019 2:36 PM

Holding down the SHIFT button while launching Edge worked for me.