Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center

Hey there, Let’s discuss about enable or disable Ask Before Closing a window with multiple tabs policy in Edge Browser using M365 Admin Center. We all know for what purpose the policy needs to be deployed. By deploying this policy, users don’t lose unsaved work or important tabs due to unintended browser closures.

The “Ask Before Close” policy in M365 is there to prevent accidental browser closures when multiple tabs are open. When enabled, this feature prompts users with a confirmation pop-up before exiting Edge browser, ensuring we don’t lose important tabs unintentionally.

This feature can be particularly useful in work or any research environment where multiple sessions are active. The policy can be managed via Microsoft Edge’s settings under browser behavior and features. Ask Before Close Enabled Policy enhances productivity and minimizes disruptions.

Through this blog post we will go through the step-by-step guidance of deployment of the policy configuration in the M365 Admin Center. For easy understanding relevant screenshots and deploying methods are explained in this post.

Patch My PC

How Does Ask Before Close Enabled Policy Benefit Users?

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center

The policy Ask Before Close Enabled Prevents accidental browser closure and it helps to reduces the risk of losing multiple active sessions, through this we can improve productivity.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser

This policy in Microsoft Edge allows administrators to control whether users receive a confirmation prompt before closing the browser with multiple tabs open. When enabled, this policy helps prevent accidental data loss.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.1
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.1

Basics

When configuring policies in the Basics section, it’s important to assign a clear, descriptive name and provide a detailed explanation for the policy. Here policy name is “Ask before close enabled”, and description “to enable or disable ask before closing”.

NameDescriptionPolicy TypePlatform
Ask Before Close EnabledTo enable or disable Ask Before CloseIntuneWindows 10 and 11
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Table.1
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.2
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.2

Settings

In the Settings tab of our policy configuration, need to click “Add settings“. Then we need to search for the policy we want to deploy from Additional settings.

  • Add Settings
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.3
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.3

Configure a setting

To configure the policy, search for it by name. This will open the Value tab, where we can select between Enabled and Disabled options. For our purposes, we should select Enabled to activate the policy’s protective feature, which will prompt users for confirmation before closing the browser with multiple tabs open.

if the goal is to remove this safeguard and allow immediate browser closure, the Disabled option should be selected instead.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.4
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.4

To better understand the policy’s purpose and functionality, click “More Details” to view its complete description, including technical specifications and implementation guidance.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.5
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.5

A notification confirms that the policy has been successfully updated after we click Select. Once the policy is selected, confirm the name and value in the new window.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.6
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.6

To enable the policy, simply check the box beside its name in the list, then click Next to continue with the configuration process. This action confirms our selection and moves us forward in the policy setup workflow.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.7
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.7

The Extensions section allows us to customize your policy by adding specific extensions, which include settings for installation, permissions, and URLs. If the policy requires additional functionality, we can add extensions by clicking + Add extension. However, if no extensions are needed, we can simply skip this section.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.8
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.8

Assignments

The Assignments tab serves as the control center for targeting your policy deployment. By selecting a group, we can limit the policy’s application to only those users

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.9
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.9

After the selection of the group from the Microsoft Entra groups, a notification will appear on the page confirming that the group has been updated. Here we assigned the group Test_HTMD_Policy.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.10
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.10

Finish

To complete the policy configuration, click Review + create to verify all settings before final deployment. The summary screen displays our configured options including assignments, rules, and exceptions allowing for a final quality check. Once confirmed, click Create to activate the policy. 

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.11
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.11

After you click on Review and Create, the portal will display a success message confirming that the policy has been created successfully. The new policy will then be visible in the Configuration Policies section.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.12
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.12

Client Side Verification through Event Viewer

To confirm policy enforcement on individual devices, administrators can use Windows Event Viewer for client-side verification. Navigate to Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin and filter for Event ID 814.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.13
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.13

Device and User Check-in Status

The Device and User Check-in Status provides real-time visibility into policy deployment and compliance across our organization. After manual synchronization through the company portal, we can confirm successful deployment by checking the policy’s status in the Intune Portal.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.14
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.14

End User Experience

To find the end result of “Ask Before Close” in Edge browser, go to settings > Appearance> Turn on Ask before closing a window with multiple tabs. Then we can check it by closing multiple tabs.

Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center - Fig.15
Enable Disable Ask Before Closing a Window with Multiple Tabs Policy in Edge Browser using M365 Admin Center – Fig.15

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Anoop C Nair has been Microsoft MVP for 10 consecutive years from 2015 onwards. He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc.

Leave a Comment