Policy
Display a custom message when installation is prevented by a policy setting
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista
This policy setting allows you to display a custom message to users 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 Detail Text box when a policy setting prevents device installation. If you disable or do not configure this policy setting, Windows displays a default message when a policy setting prevents device installation.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Detail Text ID DeviceInstall_DeniedPolicy_DetailText_Text | text | HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DeniedPolicy\DetailText Type REG_SZ | None |
Other policies in this category
Explore related policies at the same level.
- ComputerAllow administrators to override Device Installation Restriction policiesAt least Windows Vista
- ComputerAllow installation of devices that match any of these device IDsAt least Windows Vista
- ComputerAllow installation of devices that match any of these device instance IDsAt least Windows Server 2016, Windows 10 Version 1909
- ComputerAllow installation of devices using drivers that match these device setup classesAt least Windows Vista
- ComputerApply layered order of evaluation for Allow and Prevent device installation policies across all device match criteriaAt least Windows Server 2016, Windows 10 Version 2106
- ComputerDisplay a custom message title when device installation is prevented by a policy settingAt least Windows Vista
- ComputerPrevent installation of devices not described by other policy settingsAt least Windows Vista
- ComputerPrevent installation of devices that match any of these device IDsAt least Windows Vista
- ComputerPrevent installation of devices that match any of these device instance IDsAt least Windows Server 2016, Windows 10 Version 1909
- ComputerPrevent installation of devices using drivers that match these device setup classesAt least Windows Vista
- ComputerPrevent installation of removable devicesAt least Windows Vista
- ComputerTime (in seconds) to force reboot when required for policy changes to take effectAt least Windows Server 2008 R2 or Windows 7