Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Fix: Device Installation is Forbidden by System Policy

May 26, 2025

Fix: Device Installation is Forbidden by System Policy

The installer may return the following error when installing the driver manually from an INF file or via an MSI/EXE package:

Windows found driver for your device bat encountered an error then attempting to install them.
The installation of this device is forbidden by system policy. Contact your administrator.

Error: The installation of this device is forbidden by system policy

This error may occur during the installation of various types of drivers, including network adapters, USB devices, printers, etc.

Device installation forbidden by system policy

In this case, warnings with code 125 will appear in the Event Viewer under the Application and Services Logs > Microsoft > Windows > DeviceSetupManager > Admin. These warnings will include the device identifier in the VEN_ID & DEV_ID format and the following message:

Driver install on device PCI\VEN_8086&DEV_10D3&SUBSYS_07D015AD&REV_00\000C29FFFF35652F00 was blocked by PnP restriction policy.

Event 125: Driver install on device was blocked by PnP restriction policy

In this case, devices detected via Plug and Play (PnP) will appear in Device Manager with a yellow exclamation point and the error code:

The device is not configured correctly. (Code 1)
The installation of this device is forbidden by system policy.

Device manager error (Code 1 )- This device is not configured correctly

This indicates that the computer’s security policy prevents the installation or updating of device drivers. Such a policy can restrict updates to specific device models and classes, or it can be applied universally to all devices. These policies can be implemented by an administrator for security purposes or to prevent automatic driver updates in Windows.

To identify active restrictive policies on a computer, generate and review the Resultant Set of Policy (RSoP) report by running the rsop.msc command.

Go to Computer Configuration -> Administrative Templates -> System -> Device Installation. In my example, several policy options have been enabled to restrict driver installation. The Local Group Policy label in GPO Name indicates that these settings were enabled using the local GPO editor.

Result GPO settings prevent device instalation

Open the gpedit.msc snap-in and navigate to the specified GPO section. Disable all restrictive policies by setting their values to Not set. For example:

  • Prevent installation of devices that match any of these device instance IDs – deny driver installation for specific devices based on their VEN and DEV identifiers (Learn how to identify an unknown device by its VED/DEV ID)
  • Prevent installation of devices that match any of these device IDs
  • Prevent installation of devices using drivers that match these device setup classes – deny installation for entire classes of devices by their GUID (e.g., network adapters, video cards, audio cards, scanners, etc.)
  • Prevent installation of removable devices – deny the installation of drivers for removable devices (usually USB).
  • Prevent installation of devices not described by other policy settings – installation of any drivers not described in the Allow policies is prohibited.

Disable the GPO options that prevent drivers from being installed

After disabling the restrictive policies, run the gpupdate /force command to update the GPO settings. After this, you will be able to install the drivers.

If the above settings have not been configured through Group Policy and the option to deny driver installation is active in Windows, check if the restrictive settings have been enabled directly through the registry. Run the regedit.exe and go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions.

If device installation restrictions are enabled on the computer, this registry key will contain parameters with names like DenyUnspecified, DenyDeviceClasses, DenyDeviceIDs, and so on. To disable the restrictions, either change the parameter value from 1 to 0, or delete it completely. In such cases, the DenyDeviceClasses and DenyDeviceIDs registry subkeys may contain a list of specific device class GUIDs or hardware IDs that are blocked from installation.

Disable device installation restrictions in registry
To remove all device installation restrictions, you can delete the Restrictions registry key entirely.

0 comment
0
Facebook Twitter Google + Pinterest
Questions and AnswersWindows 10Windows 11
previous post
Disable the Lock Screen Widgets in Windows 11

Related Reading

How to Assign (Passthrough) a Physical GPU to...

June 11, 2024

Configuring RemoteApps Hosted on Windows 10/11 (without Windows...

January 25, 2025

Disable BitLocker Automatic Drive Encryption in Windows 11

October 16, 2024

Enable Hyper-V on Windows 10/11 Pro and Home...

August 12, 2024

Get Started with Docker on Windows (WSL2) without...

September 4, 2024

Disable and Completely Remove Widgets from Taskbar in...

September 26, 2024

Adding Multiple Alternate DNS Names for a Windows...

September 3, 2024

Change Network Connection (Adapter) Priorities in Windows

August 5, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Configuring Windows Protected Print Mode (WPP)

    May 19, 2025
  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Fix: Windows Update Tab (Button) is Missing from Settings
  • Fix: Your IT Administrator Has Limited Access to Virus & Threat Protection
  • Permanently Disable Driver Signature Enforcement on Windows 11
  • How to Add or Reinstall the Microsoft PDF Printer on Windows
  • Fix: Multiple Connections to a Server or Shared Resources by the Same User
  • How to Pause (Delay) Update Installation on Windows 11 and 10
  • Couldn’t Mount ISO File on Windows
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top