Error "Resource $(string id="Win7Only)' referenced in attribute displayName could not be found" when opening gpedit.msc in Windows

Se aplică la: Windows 10, version 1803, all editions


Assume that you update the ADML and ADMX file to the Windows 10, version 1803 version. When you open gpedit.msc, you receive the following error:


This is a known issue. There are text updates in the Windows 10, version 1803 version of SearchOCR.ADML. However, when the changes were made, this line was cut-out of the new ADML:

<string id="Win7Only">Microsoft Windows 7 or later</string>


To fix this issue, download the updated ADMX package by using the following link. Then, use the updated SearchOCR.ADMX and SearchOCR.ADML files from it.

Administrative Templates (.admx) for Windows 10 April 2018 Update (1803)


To work around this issue:

  1. Add the missing String to the 1803 version of SearchOCR.adml
  2. Copy the old Windows 10, version 1511 version of SearchOCR.admx to the system. This file was not updated after Windows 10, version 1511 until the Windows 10, version 1803 release.

To update SearchOCR.adml follow these steps:

Note this is for the United States English version. Other languages will have similar instructions.

  1. Locate the file in the \path\PolicyDefinitions\en-US folder
  2. Make a backup copy of SearchOCR.adml in case that you make a mistake editing the file
  3. Open the file in a text editor. (If you use notepad.exe, turn on the Status Bar on the View menu)
  4. Locate line 26
  5. Add a blank line. Line 26 should now be blank.
  6. On the blank line 26 paste this text:
    <string id="Win7Only">Microsoft Windows 7 or later</string>
  7. Save the file.