Implementation guidance for Australian Essential Eight controls in Microsoft environments - ISM controls with PSPF mappings
| Property | Value |
|---|---|
| ISM Control | ISM-1542 |
| Revision | 0 |
| Updated | Jan-19 |
| Guideline | Not provided |
| Section | User application hardening |
| Topic | Hardening user application configurations |
| Essential Eight | ML2, ML3 |
| PSPF Levels | NC, OS, P, S, TS |
Microsoft Office is configured to block activation of OLE packages, reducing the risk from OLE/COM components in Office documents. The implementation uses a PowerShell script deployed via Intune Scripts to enforce the setting on supported Office versions1.
The OfficeMacroHardening-PreventActivationofOLE.ps1 script writes the following registry values to block OLE package activation in Office 2016 and later:
| Registry path | Value name | Type | Value | Effect |
|---|---|---|---|---|
HKCU\Software\Microsoft\Office\16.0\Excel\Security |
PackagerPrompt |
DWORD | 0 |
Suppress OLE activation prompt in Excel |
HKCU\Software\Microsoft\Office\16.0\PowerPoint\Security |
PackagerPrompt |
DWORD | 0 |
Suppress OLE activation prompt in PowerPoint |
HKCU\Software\Microsoft\Office\16.0\Word\Security |
PackagerPrompt |
DWORD | 0 |
Suppress OLE activation prompt in Word |
HKLM\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\16.0\Common\COM Compatibility\<CLSID> |
ActivationFilterOverride |
DWORD | 0 |
Block activation of risky COM class CLSIDs |
[!NOTE] These are HKCU (per-user) keys written when the script runs with logged-on credentials. An alternative approach is to deploy the same keys via Intune Settings Catalog (Custom OMA-URI) or Group Policy Preferences, or to enforce the block at the kernel-mode code-integrity layer using a WDAC deny rule for the OLE COM DLL (e.g.,
mshtml.dll). The WDAC approach is system-wide and harder to bypass, but requires policy authoring and signing.[^3]
[!NOTE] The OfficeMacroHardeningPreventActivationOfOle.ps1 script will be deployed via Intune Scripts to disable OLE package activation in Office. It will be targeted to Office 2016 and later and OLE activation will be blocked in Excel, PowerPoint, and Word.
Administrative access to Microsoft Intune to create and assign the PowerShell script under Devices > Scripts and target the deployment to a group (for example, All Office Users) or a deployment group. 1
Device management prerequisites: Device must be enrolled in Microsoft Intune and Entra ID (or hybrid Azure AD joined) to receive and apply the script. 1
OfficeMacroHardening-PreventActivationofOLE.ps1 PowerShell script to import registry keys that block activation of OLE packages in Excel, PowerPoint, and Word (Office 2016 and later). 1
OfficeMacroHardening-PreventActivationofOLE-Office2013.ps1 script for Office 2013, if applicable. 1
The script is unsigned. If script signing is required in the environment, sign the script and set Enforce script signature check to Yes. 1
| Setting | Value |
|---|---|
| Run this script using the logged on credentials | Yes |
| Enforce script signature check | No |
| Run script in 64-bit PowerShell Host | No |
Assign the script to a deployment group. 1
Note: The script is specifically for Office 2016 and later. A script to prevent the activation of OLE for Office 2013 is provided here: OfficeMacroHardening-PreventActivationofOLE-Office2013.ps1. 1
If script signing is required, sign the script and change the Enforce script signature check to: Yes. See [Methods of signing scripts] documentation. 1
Navigate to Devices > Scripts and create a new PowerShell script. 2
Import the PowerShell script to prevent activation of Object Linking and Embedding packages. 2
Run this script using the logged on credentials: Yes. 2
Enforce script signature check: No. 2
Run script in 64-bit PowerShell Host: No. 2
Assign the PowerShell script to: All Office Users (created in Stage 1). 2
[!NOTE] This PowerShell script is specifically for Office 2016 and later. A script to prevent the activation of OLE for Office 2013 is provided here: OfficeMacroHardening-PreventActivationofOLE-Office2013.ps1. 2