Allowed severity of self-harm content in general for the computer.
| Registry value | allowedselfharmcontent |
| Group Policy | Allowed severity of self-harm content in general for the computer. |
| German version | Allowed severity of self-harm content in general for the computer. |
| Scope | Computer · HKLM |
| ADMX | office16.admx · L_AllowedSelfHarmContentGeneralMachine |
Group Policy path
Registry
| Value | Data |
|---|---|
HKLM\Software\policies\microsoft\office\16.0\common\ai\contentsafety\general | |
| allowedselfharmcontent | decimal 0–7 |
Not configured = the value does not exist – the application default applies and users may change the setting.
PowerShell
Check the current value (read-only)
# --- Settings ---
$root = 'HKLM:' # needs an elevated session
$key = "$root\Software\policies\microsoft\office\16.0\common\ai\contentsafety\general"
foreach ($name in @('allowedselfharmcontent')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}Admin rights needed: HKLM values require an elevated PowerShell.
Enable
# --- Settings ---
$root = 'HKLM:' # needs an elevated session
try {
$key = "$root\Software\policies\microsoft\office\16.0\common\ai\contentsafety\general"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'allowedselfharmcontent' -PropertyType DWord -Value 0 -Force -ErrorAction Stop | Out-Null # range 0–7
'Done.'
}
catch { Write-Error "Failed: $($_.Exception.Message)" }Reset to Not configured
# --- Settings --- $root = 'HKLM:' # needs an elevated session $key = "$root\Software\policies\microsoft\office\16.0\common\ai\contentsafety\general" Remove-ItemProperty -Path $key -Name 'allowedselfharmcontent' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (settings catalog)
Not found in the current settings catalog export. Search the catalog for Allowed severity of self-harm content in general for the computer. (Microsoft Office 2016 (Machine) › AI › Content Safety › General).
Cloud Policy
Not available: Cloud Policy only applies user policies, this is a computer policy (HKLM).
Microsoft explanation
This local content safety policy setting adjusts the allowed severity of self-harm content in general for the computer. The allowed severity may range from 0 to 7.
0 means allow no self-harm content.
7 means allow all self-harm content.
For more information on content safety severities, please refer to the following documentation:
https://learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/harm-categories?tabs=definitions
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 not configured, the allowed severity of self-harm content in general is determined by lower priority policy settings.
- If this policy setting is not configured and lower priority policy settings are also not configured, the allowed severity of self-harm content in general defaults to 2.
For this policy setting, the order of priority is:
1. Allowed severity of self-harm content to and from [a specific scenario] for the computer.
2. Allowed severity of self-harm content in general for the computer.
3. Allowed severity of self-harm content to and from [a specific scenario] for the user.
4. Allowed severity of self-harm content in general for the user.
Same category: Microsoft Office 2016 (Machine) › AI › Content Safety › General
- Disable local content safety in general for the computer.disablecontentsafety
- Allowed severity of hate content in general for the computer.allowedhatecontent
- Allowed severity of violent content in general for the computer.allowedviolentcontent
- Allowed severity of sexual content in general for the computer.allowedsexualcontent
All policies in this category · All 945 policies of office16.admx