Skip to content
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune

Written By Anoop C Nair
Last Updated May 11, 2026
Posted In Intune
SHARE

Key Takeaways:

  • Helps prevent malicious attachments or scripts from being executed directly from email
  • Intune is leveraged to centrally enforce Defender Exploit Guard rules across managed devices.
  • Ensures safer email usage in corporate environments
  • IT admins and security teams who manage enterprise devices and want to strengthen endpoint protection

Let’s discuss Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune. This rule blocks email opened within the Microsoft Outlook application, or Outlook.com and other popular webmail providers from propagating Executable files (such as .exe, .dll, or .scr) and Script files (such as a PowerShell .ps1, Visual Basic .vbs, or JavaScript .js file)

Table of Contents

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune

Block executable content from email client and webmail policy is a part of the Microsoft Defender Exploit Guard suite, specifically under Attack Surface Reduction (ASR) rules. The primary goal of this setting is to break the initial infection vector of most cyberattacks. Email remains the #1 delivery method for malware.

Even if a user is tricked into clicking a “bill.exe” attachment, the ASR rule intercepts the execution at the OS level. It blocks not just .exe files, but scripts and other executable content that webmail clients might try to launch. It provides a safety net for users who may not have high security literacy.

Example Scenario

An IT admin in a remote branch downloads a “handy” network scanner tool from a webmail link sent by a peer. Even if the tool is “helpful,” it hasn’t been vetted by the central security team. This policy enforces Application Control by ensuring that software is installed via approved channels (like Company Portal) rather than being run directly from an email source.

Patch My PC

How to Start Policy Creation

You can quickly configure this policy on your organisation. To start the Policy Creation, open the Microsoft Intune Admin center. Then go to Devices > Configuration >+ Create > +New Policy.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.1
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.1

Profile Creation

Profile creation is the necessary step that helps you to assign the policy to appropriate platform and Profile. Here I would like to configure the policy to  Windows 10 and later platform and settings catalog profile. Then click on the Create button.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.2
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.2

Basic Tab for Name and Description

Naming the policy is the primary step that help admins to identify the policy later. This is important and necessary step that allows you to know the purpose of the policy. Here is Name is mandatory and description is optional. After adding this click on the Next button.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.3
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.3

Configure Block Executable Content from Email Client and Webmail

With Settings Picker, you can use the Configuration Settings Tab. On this tab, you can click on the +Add Settings hyperlink to get the Settings Picker. The settings picker shows huge number of settings. Here, I would like to select the settings by browsing by Category. I choose Defender\Block Executable Content from Email Client and Webmail.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.4
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.4

Choose Value for Block Executable Content from Email Client and Webmail

There are 3 values are available for this policy. Not configured(off) is the default value of this policy. Other values of this policy is Block, Audit, Warn. The usage of each policy is shown on the below table.

ValuesTechnical ActionEvent LoggingStrategic Usage
Not ConfiguredIgnored: The OS ignores this specific ASR rule.No events are recorded for this rule.Default state. Use only if another security layer is handling mail execution.
AuditAllow: The executable runs, but the attempt is flagged.High: Logs every instance in Event Viewer and Defender Portal.Critical for Testing. Use this to identify if legitimate apps will break before enforcement.
BlockPrevent: The execution is terminated instantly by Defender.High: Logs the block and triggers a user notification.Production Standard. This is the “Zero Trust” state used to stop phishing and ransomware.
WarnUser Choice: Blocks the file but offers a “Bypass” option.High: Logs the attempt and whether the user chose to bypass.Selective Use. Good for IT staff or developers who may need to run vetted tools from mail.
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Table.1
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.5
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.5

Scope Tags

With scope tags, you create a restriction to the visibility of the Executable Content from Email Client and Webmail. It helps to organise resources as well. Here, I would like to skip this section, because it is not mandatory. Click on the Next button.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.6
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.6

Assignments Tab for Selecting Group

To assign the policy to specific groups, you can use the Assignment Tab. Here I click, +Add groups option under Included groups. I choose a group from the list of groups and click on the Select button. Again, I click on the Select button to continue.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.7
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.7

Review + Create Tab

Before completing the policy creation, you can review each tab to avoid misconfiguration or policy failure. After verifying all the details, click on the Create Button. After creating the policy, you will get a success message.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.8
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.8

Monitoring Status

The Monitoring Status page shows whether the policy has succeeded or not. To quickly configure the policy and take advantage of the policy sync the assigned device on Company Portal. Open the Intune Portal. Go to Devices > Configuration > Search for the Policy. Here, the policy shows as successful.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.9
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.9

Client Side Verification

Client Side vewrification can be easily check with Event Viewer. Open the Client device and open the Event Viewer. Go to Start > Event Viewer. Navigate to Logs: In the left pane, go to Application and Services Logs > Microsoft > Windows > Windows Defender > Admin.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.10
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.10

Removing the Assigned Group from Executable Content from Email Client and Webmail Settings

If you want to remove the Assigned group from the policy, it is possible from the Intune Portal. To do this, open the Policy on Intune Portal and edit the Assignments tab and the Remove Policy.

To get more detailed information, you can refer to our previous post – Learn How to Delete or Remove App Assignment from Intune using by Step-by-Step Guide.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.11
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.11

How to Delete Executable Content from Email Client and Webmail

You can easily delete the Policy from the Intune Portal. From the Configuration section, you can delete the policy. It will completely remove it from the client devices.

For detailed information, you can refer to our previous post – How to Delete Allow Clipboard History Policy in Intune Step by Step Guide.

Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune - Fig.12
Block Executable Content from Email Client and Webmail in Microsoft Defender using Intune – Fig.12

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community  and WhatsApp Channel 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.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read