Reset Microsoft Edge via PowerShell to Default Settings
In this article
Yes, you can reset Microsoft Edge to its default settings using PowerShell. This removes your homepage, search engine, extensions, and most customizations, restoring Edge to a clean state. You’ll need to be signed in as an administrator on Windows. The process works for Edge on Windows 10 and 11. Note that the exact file paths may vary slightly depending on your Windows version and installation type.
What You'll Need
- A Windows PC with Microsoft Edge installed (the current version).
- Administrator access to run PowerShell elevated.
- Close all Edge windows and background processes before starting.
Step-by-Step
- Close Microsoft Edge completely. Make sure no Edge windows are open. Also, check the system tray for Edge icons—right-click and choose “Exit” if present. To be thorough, you can open Task Manager (Ctrl+Shift+Esc), find any “Microsoft Edge” processes, and end them.
- Open PowerShell as Administrator. Click the Start button, type “PowerShell”, right-click “Windows PowerShell” in the results, and select “Run as administrator”. If prompted by User Account Control, click “Yes”.
- Back up your Edge data (optional but recommended). Before resetting, you can export your favorites and passwords. In Edge, press Ctrl+Shift+O to open Favorites, then click the three-dot menu (⋯) and choose “Export favorites”. For passwords, go to Settings > Profiles > Passwords, click the three-dots and select “Export passwords”. This step is optional, but it protects your data.
- Locate the Edge profile folder. In PowerShell, run this command to see the path to your Edge user data folder:
This will list the profiles (like “Default” or “Profile 1”). Note the profile name you want to reset.Get-ChildItem "$env:LOCALAPPDATA\Microsoft\Edge\User Data" - Delete the profile folder. Replace
Defaultwith your actual profile name if it’s different. Run:
This permanently deletes that profile’s settings, extensions, cookies, and cache. Your bookmarks and saved passwords will be lost unless you backed them up. If you have multiple profiles, repeat this for each one you want to reset.Remove-Item "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default" -Recurse -Force - Reset Edge policies (if any). Sometimes Edge settings are controlled by group policies. To remove them, run:
This deletes registry keys that may force certain settings. If you’re not sure whether policies exist, you can skip this step. Note that this only affects local machine policies; domain policies may still apply.Remove-Item "HKLM:\SOFTWARE\Policies\Microsoft\Edge" -Recurse -Force - Restart Edge. After the deletion, Edge will create a fresh profile the next time you open it. Launch Edge from the Start menu. You’ll see the first-run experience, and you can set up your preferences again.
Common Mistakes
- Not closing Edge completely. If Edge is still running, the profile folder may be in use, and the deletion will fail or leave corrupted files.
- Deleting the wrong folder. Double-check that you’re in the correct “User Data” path and that the profile name matches. Deleting the entire “User Data” folder would remove all profiles, which might be more than you intended.
- Forgetting to back up. Once you delete the profile, your favorites, passwords, and history are gone. There’s no undo.
- Running PowerShell without admin rights. Without administrator privileges, the Remove-Item command may throw an “Access denied” error.
Tips
- Use the built-in reset first. Edge has a less drastic reset option: go to Settings > Reset settings > Restore settings to their default values. This keeps your favorites and passwords. Only use the PowerShell method if that doesn’t work or you need a complete wipe.
- Export your data before resetting. Even if you think you don’t need it, exporting favorites takes just a few seconds and can save you a headache.
- Check for sync. If you use Edge sync, your data is stored in the cloud. After reset, you can sign in to your Microsoft account to restore synced data. However, synced data may not include all settings.
- Keep the PowerShell window open until you’ve confirmed Edge starts fresh. If something goes wrong, you can re-run the commands.
Troubleshooting
If the profile folder won’t delete: The most common cause is Edge still running in the background. Open Task Manager, look for “Microsoft Edge” under “Processes”, and end all instances. If you still get an error, restart your PC and try again without opening Edge.
If Edge doesn’t create a new profile: After deletion, Edge should create a new “Default” folder when you launch it. If it doesn’t, try running the command Start-Process msedge from PowerShell. If that fails, check if Edge is installed as a per-user or per-machine app—the path may differ.
If settings are still not default: Some settings may be controlled by group policies. Run gpupdate /force in an elevated command prompt to refresh policies, then check the registry key we deleted earlier. If the key reappears, a domain policy is reapplying it—contact your IT admin.
If you accidentally deleted the wrong profile: If you have a backup of the folder (you made one, right?), you can restore it. Otherwise, you may be able to recover data from a file recovery tool, but it’s not guaranteed. Always back up first.
Frequently Asked Questions
Will this reset my bookmarks and passwords?
Yes, deleting the profile folder removes all local data, including bookmarks, passwords, and history. If you have sync enabled, you can sign in to your Microsoft account to restore them, but it’s safer to export them manually.
Can I reset Edge without losing my favorites?
Yes. Use the built-in “Restore settings to their default values” option in Edge’s settings. That keeps your favorites and passwords. The PowerShell method is for a full reset.
Does this work for Edge on Mac or Linux?
No. This guide is for Windows only. On Mac, you’d delete the profile folder in ~/Library/Application Support/Microsoft Edge, but that’s a different process.
Will this remove Edge updates?
No. The profile folder contains only user data, not the Edge application itself. Updates are stored separately and won’t be affected.
Is it safe to delete the registry key for Edge policies?
Yes, if you’re an administrator. That key is only used to store Edge policies. Deleting it removes those policies, but it won’t harm your system. If you’re on a managed device, your IT admin may reapply policies.
How do I know which profile is the one I use?
In the list from Get-ChildItem, the “Default” profile is usually the first one created. If you have multiple profiles, check the “Profile 1”, “Profile 2”, etc. You can also look at the “Preferences” file inside each folder to see the profile name.