Re-Enabling Group Policy for Windows Recovery: Command Prompt Method
If you have accidentally uninstalled your keyboard or mouse and enabled the Group Policy "Prevent installation of devices not described by policy settings" on your personal desktop, it can be a frustrating experience. However, this issue can be resolved by re-enabling the Group Policy through the Command Prompt. This article will provide a detailed explanation of the topic, covering key concepts and subtitles to help you understand the process.
Root Cause
The root cause of this issue is when a user uninstalls their keyboard or mouse and has the Group Policy "Prevent installation of devices not described by policy settings" enabled. Normally, the operating system would install a generic keyboard or mouse driver, but with this Group Policy enabled, that is not possible. In order to resolve this issue, the Group Policy must be re-enabled through the Command Prompt.
Disabling the Group Policy
To disable the Group Policy, follow these steps:
Press Windows key + R to open the Run dialog box.
Type
gpedit.mscand press Enter to open the Local Group Policy Editor.Navigate to
Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions.Double-click the policy setting
"Prevent installation of devices not described by policy settings"and select Disabled.Click OK to save the changes.
Re-Enabling the Group Policy
To re-enable the Group Policy, follow these steps:
Press Windows key + X to open the Power User menu.
Select Command Prompt (Admin).
Type the following command and press Enter:
gpupdate /forceReferences
- Books:
- Windows Server 2016 Inside Out by Orin Thomas
- Articles:
- Prevent installation of devices that do not match these device setup classes, Microsoft TechNet - https://docs.microsoft.com/en-us/troubleshoot/windows-server/administration/prevent-installation-of-devices-not-match-device-setup-classes
- Online Resources:
- Group Policy Settings Reference for Windows and Windows Server, Microsoft TechNet - https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/group-policy-settings-reference-for-windows-10
By following the steps outlined above, you should be able to re-enable the Group Policy for Windows Recovery through the Command Prompt. This will allow you to install a keyboard or mouse on your personal desktop even if it has been accidentally uninstalled.