Hey everyone! I'm looking for a way to create a PowerShell script that can restart the Edge browser and restore all my previously opened windows and tabs. The catch is that my organization has disabled the "auto-restore" feature in Edge's startup settings. I'd love to know if there's a workaround for this! If someone has insights or solutions, please share. Thanks a lot!
2 Answers
You could try using ctrl+shift+t after restarting Edge to reopen your last closed tabs. It's a quick solution if you just want to recover some of your previous sessions! You might also consider using taskkill to force-close the process, and Edge might prompt you to restore your tabs when you reopen it.
It's technically possible to restart Edge and try to restore the tabs, but it could get really complicated. You'd probably need to work with APIs to gather all the current windows and tabs, save that data securely, close everything, and then attempt to restore them. However, this might not work perfectly, and there's a risk of data loss or exposing session information. The auto-restore feature exists for a reason, and bypassing it sounds tricky!

Thanks for the tip! I didn't think of that shortcut. I'll give it a shot!