How to Disable Incognito Mode in Microsoft Edge
In this article
To disable Incognito mode (known as InPrivate browsing) in Microsoft Edge, you must modify the Windows Registry on Windows or use a Terminal command on macOS, as there is no built-in toggle switch within the browser's standard settings menu. By disabling this feature, you prevent users from opening private windows that do not save browsing history, cookies, or form data, which is particularly useful for parental controls or maintaining strict workplace compliance on shared devices.
What You'll Need
- A computer running Windows (10 or 11) or macOS.
- Administrative privileges on the device to access the Registry Editor or Terminal.
- A backup of your Registry (recommended for Windows users) before making changes.
Step-by-Step
Since Microsoft Edge does not provide a simple checkbox to turn off InPrivate browsing, the method depends on your operating system. Follow the instructions below for your specific platform.
Method 1: Windows Registry Editor (For Windows Users)
- Open the Run Command: Press the
Windows Key + Ron your keyboard to open the Run dialog box. - Launch Registry Editor: Type
regeditinto the box and press Enter. If a User Account Control (UAC) prompt appears asking for permission, click Yes. - Navigate to the Policies Key: In the left-hand sidebar, navigate through the folders by following this path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft. - Create the Edge Folder: Check if there is a folder (key) named
Edgeunder the Microsoft folder. If it does not exist, right-click theMicrosoftfolder, selectNew>Key, and name itEdge. - Create the InPrivate Mode Value: Right-click on the
Edgefolder you just created or located. SelectNew>DWORD (32-bit) Value. - Name the Value: Name this new entry
InPrivateModeAvailability. Ensure the spelling is exact, as the Registry is case-sensitive and sensitive to typos. - Modify the Value Data: Double-click the
InPrivateModeAvailabilityentry. In the "Value data" field, change the number from0to1. A value of 0 allows InPrivate browsing, while 1 disables it. - Save and Exit: Click OK to save the change and close the Registry Editor window.
- Restart Edge: Close all open Microsoft Edge windows. Relaunch the browser. You will notice that the "New InPrivate window" option in the menu is now greyed out or completely missing.
Method 2: Using Terminal (For macOS Users)
- Open Terminal: Press
Command + Space, typeTerminal, and press Enter. - Enter the Command: Copy and paste the following command into the Terminal window:
defaults write com.microsoft.Edge InPrivateModeAvailability -int 1. - Execute: Press Enter to run the command.
- Restart the Browser: Completely quit Microsoft Edge (Command + Q) and restart it. The InPrivate browsing option should now be disabled.
Common Mistakes
One of the most frequent errors occurs during the Windows Registry process when users create a "String Value" instead of a "DWORD (32-bit) Value." The Registry Editor offers several types of new entries, and selecting the wrong one will result in the browser ignoring the command entirely. Always ensure you select DWORD (32-bit) for this specific policy.
Another common mistake is misspelling the key name. InPrivateModeAvailability is a long string; a single missing letter or an accidental space will prevent the policy from applying. If the option remains active in Edge, double-check the spelling against the guide.
Users also frequently forget to restart the browser. Simply closing the window is sometimes not enough if Edge is running in the background. It is best to open the Task Manager (Ctrl + Shift + Esc) and end all Microsoft Edge tasks to ensure the new Registry settings are loaded upon the next launch.
Tips
If you are managing multiple computers in a business environment, using the Registry Editor manually is inefficient. Instead, use Group Policy Objects (GPO). You can download the Microsoft Edge Policy Templates and apply the "InPrivateModeAvailability" setting across your entire network from a central server.
For those who want to revert the changes, you do not need to delete the entire Edge folder. Simply navigate back to the InPrivateModeAvailability value and change the data from 1 back to 0. This will immediately re-enable the InPrivate browsing feature once the browser is restarted.
To ensure the setting is actually active, you can type edge://policy into the Edge address bar. This page lists all the active policies being applied to your browser. Look for InPrivateModeAvailability in the list; if it shows a value of 1, the restriction is working correctly.
Troubleshooting
If you have followed the steps but the InPrivate option is still available, first verify that you are editing the correct path. Some users accidentally navigate to HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE. While HKEY_CURRENT_USER can work for the specific logged-in user, HKEY_LOCAL_MACHINE is the standard for system-wide enforcement.
If the value is set to 1 but the menu is still active, check for conflicting software. Some third-party optimization tools or "system cleaners" may automatically reset Registry keys to default values to "optimize" the system. Ensure such software is disabled or that you add the Edge policy key to their exclusion list.
On macOS, if the Terminal command does not work, it may be due to permission restrictions. Try prefixing the command with sudo (e.g., sudo defaults write...). This will prompt you for your administrator password, granting the Terminal the necessary permissions to modify the application's preferences file.
Lastly, ensure your version of Microsoft Edge is up to date. While this policy has been stable for years, a corrupted browser installation can occasionally ignore Registry flags. Run a repair of Microsoft Edge via the Windows Settings app (Apps > Installed Apps > Microsoft Edge > Modify > Repair) and then re-apply the Registry change.
Frequently Asked Questions
Does disabling InPrivate mode delete my history?
No, disabling InPrivate mode does not affect your existing browsing history. It simply prevents the browser from opening a new session that avoids saving history. All future browsing will be recorded in the standard history log.
Can a user bypass this by reinstalling Edge?
No. Because the restriction is placed in the Windows Registry (or macOS defaults), reinstalling the browser application will not remove the policy. The new installation will still read the Registry key and keep InPrivate mode disabled.
Will this stop users from using other browsers in Incognito mode?
No, this method only affects Microsoft Edge. If the user has Google Chrome or Mozilla Firefox installed, they can still use the private browsing features of those browsers. You would need to apply similar Registry or Terminal changes for each individual browser.
Is it safe to edit the Windows Registry?
Editing the Registry is safe as long as you follow specific instructions and do not modify keys unrelated to the task. However, because the Registry controls core OS functions, it is always recommended to create a system restore point or export the key you are changing before making modifications.
Does this disable the "Clear Browsing Data" option?
No. Disabling InPrivate mode prevents the start of a private session, but it does not stop a user from manually clearing their history or cookies from the settings menu after a standard session has ended.