The following instructions describe one possible solution for enabling the installation of drivers for jlink flasher, e.g. on the USB interface, if the installation is prevented by Windows with the error message "The installation of this device is prevented by system policies[...]" (in German "Die Installation dieses Gerätes wird durch Systemrichtlinien verhindert[...]").
Note: The instructions refer to Windows 11 Pro.
1) Open cmd console with admin rights as follows: Enter cmd in the search field and then select "Run as administrator" on the right side and enter admin credentials.
2) Open Local Group Policy Editor: gpedit.msc
3) In the editor select: Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions (in German: Computerkonfiguration > Administrative Vorlagen > System > Geräteinstallation > Einschränkungen bei der Geräteinstallation).
4) Select the "Allow administrators to override policies under Device Installation Restrictions" policy ( in German: "Administratoren das Außerkraftsetzen der Richtlinien unter "Einschränkungen bei der Geräteinstallation" erlauben") and set it to "Enabled". Then click on "Apply" and "OK".
5) Select the policy "Prevent installation of devices not described in other policies" ( in German: "Installation von Geräten verhindern, die nicht in anderen Richtlinien beschrieben sind") and set it to "Enabled". Then click on "Apply" and "OK".
6) Enter gpupdate/force in the cmd console. This will apply the new policies.
Note: The instructions refer to Windows 11 Pro.
1) Open cmd console with admin rights as follows: Enter cmd in the search field and then select "Run as administrator" on the right side and enter admin credentials.
2) Open Local Group Policy Editor: gpedit.msc
3) In the editor select: Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions (in German: Computerkonfiguration > Administrative Vorlagen > System > Geräteinstallation > Einschränkungen bei der Geräteinstallation).
4) Select the "Allow administrators to override policies under Device Installation Restrictions" policy ( in German: "Administratoren das Außerkraftsetzen der Richtlinien unter "Einschränkungen bei der Geräteinstallation" erlauben") and set it to "Enabled". Then click on "Apply" and "OK".
5) Select the policy "Prevent installation of devices not described in other policies" ( in German: "Installation von Geräten verhindern, die nicht in anderen Richtlinien beschrieben sind") and set it to "Enabled". Then click on "Apply" and "OK".
6) Enter gpupdate/force in the cmd console. This will apply the new policies.