Home › Microsoft Intune › 0x800704EC

Microsoft Intune · 0x800704EC · Windows 10 / Windows 11 / Microsoft Intune

Intune Error 0x800704EC: Access Disabled By Policy - Windows 10/11

Error occurs when Group Policy, AppLocker, WDAC or SRP blocks Intune installer execution. Resolve by adding paths and binaries to allowlists.

Error Details

FactValueSourceNote
Exact error stringERROR_ACCESS_DISABLED_BY_POLICYIntuneManagementExtension.log-> Event ID
Affected build rangeWindows 10, Windows 11--
Registry key or OMA-URIDevice Management > Configuration Profiles > Intune Management ExtensionMicrosoft Endpoint Manager admin center-> Path
Relevant service/endpoint URLhttps://graph.microsoft.com/v1.0/deviceManagement/intents/--
Log line signatureAccess is disabled by policyIntuneManagementExtension.log, AgentExecutor.log-> Signature

Log Files to Check

What This Error Actually Means

The error code 0x800704EC, which translates to 'ERROR_ACCESS_DISABLED_BY_POLICY', is raised by Microsoft Intune when a security policy on the endpoint device blocks an action that Intune Management Extension (IME) attempts to perform. The IME is responsible for downloading and executing management scripts and applications from Intune. When this error occurs, it indicates that one of several security mechanisms—such as AppLocker, Windows Defender Application Control (WDAC), or Software Restriction Policies (SRP)—is preventing the execution of a script or application deployed by Intune. This specific error is generated when an attempt to execute a file or process fails due to policy restrictions. The IME logs this event in its local log files and reports it back to Intune, where it appears as 'Installation failed' in the deployment report for the affected app or configuration profile.

Affected Versions and Scope

This error can occur on any version of Windows 10 and Windows 11 that is managed by Microsoft Intune. The issue arises when a security policy, such as AppLocker or WDAC, is enabled on the endpoint device to restrict unauthorized software execution. This means that if your organization has implemented strict application control policies across its fleet of devices, you may encounter this error more frequently. It's important to note that this error does not occur in environments where such restrictive security policies are either absent or configured to allow the necessary Intune Management Extension components and scripts to execute freely. The affected builds include all current versions of Windows 10 and Windows 11, but it is critical to ensure compatibility with your specific configuration settings within Microsoft Endpoint Manager.

Where To Look First: Logs and Event IDs

To diagnose the issue, start by examining the logs generated by Intune Management Extension. The primary log files are located at C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log and C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\AgentExecutor.log. In these logs, search for the exact error string 'ERROR_ACCESS_DISABLED_BY_POLICY' or the literal phrase 'Access is disabled by policy'. This will point you to the specific event where the execution was blocked. Additionally, check the Windows Event Viewer for related events. For AppLocker policies, look in Applications and Services Logs > Microsoft > Windows > AppLocker > EXE and DLL. The relevant Event ID here is 8004, which logs when an executable or DLL file is blocked due to policy restrictions. For WDAC blocks, inspect the CodeIntegrity log located at Event Viewer > Applications and Services > Microsoft > Windows > CodeIntegrity > Operational. This log will provide details about any binaries that were denied execution based on a security policy. The event ID for these entries is 3001.

Root Causes

The root cause of the error code 0x800704EC can be one or more of the following:

AppLocker Policy Blocking Intune Management Extension

If an AppLocker policy is in place, it might not have a rule allowing the execution of scripts and executables from the Intune Management Extension directory. To identify this issue, check the AppLocker logs for entries that indicate blocked attempts to execute files within %ProgramFiles%\Microsoft Intune Management Extension.

WDAC Policy Blocking Unsigned Binaries

Windows Defender Application Control (WDAC) policies can block unsigned binaries or executables from running. This is particularly relevant if your organization uses WDAC in Audit or Enforce mode to restrict the execution of untrusted software. To determine whether this is the cause, review the CodeIntegrity log for entries that describe blocked attempts to execute specific files.

Software Restriction Policy Blocking Downloads

If a Software Restriction Policy (SRP) is configured on your devices, it might be blocking scripts or executables from running in temporary directories such as %TEMP%\IntuneScripts\. SRPs can restrict execution based on file paths and hash values. To diagnose this issue, look for events in the CodeIntegrity log that indicate blocked attempts to execute files from these restricted locations.

Antivirus Software Blocking Script Execution

Some antivirus products may block script execution by default or when specific policies are enabled. This can affect PowerShell scripts deployed via Intune Management Extension if they attempt to write to a directory monitored by the antivirus software. To identify this issue, check your antivirus product's logs for entries that describe blocked attempts to execute scripts.

Fix Procedure

To resolve the error 0x800704EC, follow these steps: 1. **Add Intune Management Extension Path to AppLocker Rules** - Open AppLocker in the Group Policy Editor. - Create a new rule for executables and scripts located at %ProgramFiles%\Microsoft Intune Management Extension\. Ensure that this path is allowed under the appropriate publisher or path rules. 2. **Audit WDAC Policies** - Use PowerShell to audit CodeIntegrity logs: Get-WinEvent -LogName Microsoft-Windows-CodeIntegrity/Operational | Where-Object { $_.Id -eq 3001 } - Identify the blocked binary and add a signer or hash rule in WDAC policy settings. 3. **Whitelist Intune Temp Download Path** - Navigate to your antivirus product's management console. - Add an exclusion for %TEMP%\IntuneScripts\ and %ProgramData%\Microsoft\IntuneManagementExtension\. 4. **Modify Registry Settings (if applicable)** - Use the following PowerShell command to modify a registry key: Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Apps" -Name "AllowAppLockerRules" -Value 1 - This step is optional and should be performed only if necessary.
Be cautious when modifying registry settings, as incorrect changes can affect system stability.
5. **Verify Changes in Intune Management Extension Logs** - After implementing the fixes, monitor the IntuneManagementExtension.log for successful execution of scripts or applications. - Use PowerShell to check device compliance: Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'"

Error Code Variants

Error Code Description Distinguishing Features
0x800704EC ERROR_ACCESS_DISABLED_BY_POLICY Indicates a policy is blocking execution.
0x80070562 ERROR_INSTALL_PACKAGE_REJECTED Occurs when the installer package is rejected due to security reasons, but not necessarily blocked by a policy.
0xC000013A STATUS_DLL_NOT_FOUND Suggests that a required DLL is missing or inaccessible, unrelated to security policies.

Verification

To verify the resolution of error code 0x800704EC, monitor the Intune Management Extension logs for successful execution attempts. Look for entries indicating that scripts and applications are now running without encountering policy restrictions. Additionally, review the deployment status in the Microsoft Endpoint Manager admin center under Devices > Enrollment. Ensure that the affected devices show no errors related to access being disabled by policy.

Prevention

To prevent recurrence of this error, ensure that your security policies are configured to allow necessary Intune Management Extension components and scripts. Specifically: - Implement AppLocker rules allowing execution from %ProgramFiles%\Microsoft Intune Management Extension\. - Configure WDAC policies with appropriate exceptions for trusted binaries. - Whitelist the temporary download paths used by Intune in your antivirus software. By maintaining these configurations, you can ensure that security measures do not inadvertently block essential management operations performed by Microsoft Intune.

Sources & References

Related Guides

Get new error code fixes by email

Product-specific solutions for Intune, Autopilot, SCCM and Entra ID — straight to your inbox. No spam.