Skip to main content

How to troubleshoot Extension Hardening Policy error

Overview: Users may sometimes encounter an extension hardening policy error in the Active workpapers Excel taskpane
​
​Error: 'This operation is not allowed due to the extension hardening policy'


Cause

Due to group policy/settings enforcing Extension hardening.


Resolution

Please speak to your IT to disable Extension Hardening Group Policy for your machine.


​Option 1: Using Group Policy Editor (for Windows Pro/Education/Enterprise)

  1. Open Group Policy Editor

    • Press Win + R, type gpedit.msc, and press Enter.

  2. Navigate to Office Policies

    • For Excel (Microsoft 365), go to:

    • User Configuration → Administrative Templates → Microsoft Excel → Excel Options → Security → Trust Center

    • Or, if using the system-wide policy:

    • Computer Configuration → Administrative Templates → Microsoft Excel → Excel Options → Security → Trust Center

  3. Look for “File Block Settings” or “Security > Extension Hardening”

    • Microsoft 365 introduced “Extension Hardening” to block certain unsafe file types.

    • There should be a policy like:

      • Block opening of unsafe file types

      • Open Office files from potentially unsafe locations

  4. Disable or Adjust the Policy

    • Double-click the relevant policy.

    • Set it to Disabled or Not Configured if you want to allow all extensions.

    • Click Apply → OK.

  5. Force Update Group Policy

    • Open Command Prompt as admin and run:

    • gpupdate /force

    • Restart Excel to see changes.

Please also see if this group policy can be disabled:
​

A screenshot of a computer program

AI-generated content may be incorrect.

Option 2: Using the Registry (if GP Editor not available)

  1. Open Registry Editor: Win + R → regedit → Enter.

  2. Navigate to Excel’s Trust Center:

  3. HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\excel\security\


    OR Alternatively look under KEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\excel\security\fileblock

(Use 16.0 for Office 2016/2019/365; adjust if older version.)

  1. Look for DWORD values related to extension hardening or blocking, e.g., Extensionhardening, BlockEncryptedFiles, BlockMacrosFromInternet.

  2. Set values to 0 to disable hardening, then restart Excel and test the sheet insertion again.


Option 3a: If Issues persists, you can also try to Add these DWORD values to disable hardening and test which one was causing the issue.
​

Create the following DWORD values in FileBlock and set them to 0:

DWORD Name

Value

Description

BlockMacrosFromInternet

0

Allow macros from the internet

BlockEncryptedFiles

0

Allow opening encrypted files

BlockLegacyFileFormats

0

Allow legacy file formats (xls, xlt, etc.)

BlockMac97

0

Allow Excel 97 macro-enabled files

BlockEmbeddedFiles

0

Allow embedded objects in files

Setting 0 = Disabled / Allow; 1 = Enabled / Block.


​Option 3b: In Excel Trust Center (per-user setting)

  1. Open Excel → File → Options → Trust Center → Trust Center Settings → File Block Settings.

  2. Uncheck the file types you want to allow.

  3. Click OK to save.


If the issue persists, try reinstalling the add-in and disable Safe Mode in Excel:
​File → Options → Trust Center → Trust Center Settings → ActiveX Settings, then adjust the settings as needed.

Did this answer your question?