Answer the question
In order to leave comments, you need to log in
How to upload a list of device IDs to the white list of the group policy editor using a script?
Using the Group Policy Editor on the PC, the installation of all devices is prohibited except for those that are allowed. And there are many such PCs, so manually entering IDs will take a lot of time. I made a script that gets the IDs of all installed devices and now they need to be added to the white list. But I can't find the file where they are written to. You need to create a script that will automatically add devices to the white list.
They can be manually entered in the Group Policy Editor under the branch:
Computer Configuration - Administrative Templates - System - Device Installation - Restriction on device installation - Allow installation of devices that match any ...
Answer the question
In order to leave comments, you need to log in
this policy corresponds to a key in the registry with the REG_SZ entry type - add to it:
HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\AllowDeviceIDs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question