Disable local content safety to and from the Rewrite scenario for the user.
Explanation
This policy setting disables local content safety of the Rewrite scenario for the user.
For local content safety policy, scenario-specific settings are prioritized over general settings and computer settings are prioritized over user settings.
If a higher priority policy setting is not configured, then:
- If this policy setting is enabled, local content safety for the Rewrite scenario is disabled for the user.
- If this policy setting is disabled, local content safety for the Rewrite scenario is enabled for the user.
- If this policy setting is not configured, local content safety for the Rewrite scenario is determined by lower priority policy settings.
- If this policy setting is not configured and lower priority policy settings are also not configured, local content safety for the Rewrite scenario is enabled for the user.
For this policy setting, the order of priority is:
1. Disable local content safety to and from the Rewrite scenario for the computer.
2. Disable local content safety in general for the computer.
3. Disable local content safety to and from the Rewrite scenario for the user.
4. Disable local content safety in general for the user.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\ai\contentsafety\specific\rewrite- Value name
disablecontentsafety
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: office16/L_DisableContentSafetySpecificRewriteUser
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\ai\contentsafety\specific\rewrite'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'disablecontentsafety' -Value 1 -Type DWordDisable
# Disable: office16/L_DisableContentSafetySpecificRewriteUser
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\ai\contentsafety\specific\rewrite'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'disablecontentsafety' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": office16/L_DisableContentSafetySpecificRewriteUser
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\ai\contentsafety\specific\rewrite'
Remove-ItemProperty -Path $k -Name 'disablecontentsafety' -ErrorAction SilentlyContinueApplication
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.