Open in the explorer

Display a custom message title when device installation is prevented by a policy setting

Afficher un message personnalisé lorsque l’installation d’un périphérique est empêchée par un paramètre de stratégie

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Device Installation › Device Installation Restrictions FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Installation de périphériques › Restrictions d’installation de périphériques
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
DeviceInstallation.admx
Internal name
DeviceInstallation/DeviceInstall_DeniedPolicy_SimpleText

Explanation

This policy setting allows you to display a custom message title in a notification when a device installation is attempted and a policy setting prevents the installation.

If you enable this policy setting, Windows displays the text you type in the Main Text box as the title text of a notification when a policy setting prevents device installation.

If you disable or do not configure this policy setting, Windows displays a default title in a notification when a policy setting prevents device installation.

French text from Windows 11 26H2

Ce paramètre de stratégie permet d’afficher un message personnalisé dans le titre d’une notification lorsqu’un paramètre de stratégie empêche l’installation d’un périphérique.

Si vous activez ce paramètre de stratégie, Windows affiche le texte que vous avez tapé dans la zone Texte principal en guise de titre d’une notification chaque fois qu’un paramètre de stratégie empêche l’installation d’un périphérique.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Windows affiche un titre par défaut dans une notification chaque fois qu’un paramètre de stratégie empêche l’installation d’un périphérique.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DeniedPolicy
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: DeviceInstallation/DeviceInstall_DeniedPolicy_SimpleText
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DeniedPolicy'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Main Text
Set-ItemProperty -Path $k -Name 'SimpleText' -Value '<value>' -Type String

Disable

# Disable: DeviceInstallation/DeviceInstall_DeniedPolicy_SimpleText
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": DeviceInstallation/DeviceInstall_DeniedPolicy_SimpleText
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DeniedPolicy'
Remove-ItemProperty -Path $k -Name 'SimpleText' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Main TextTexte principalDeviceInstall_DeniedPolicy_SimpleText_TextText boxtextSimpleTextREG_SZ
Required · Max length: 63

Availability