In today’s post, we will attempt to address the error message Resource $(string id=”Win7Only)’ referenced in attribute displayName could not be found that you might encounter when you try to open gpedit.msc in Windows 11/10.
Error when you open Local Group Policy Editor
When you try to open Local Group Policy Editor (gpedit.msc), you may receive the following error message:
Resource $(string id=”Win7Only)’ referenced in attribute displayName could not be found
According to Microsoft, this is a known issue. There are text updates in the previous Windows 11/10 version of SearchOCR.ADML. However, when the changes were made, the line below was cut out of the new ADML:
<string id=”Win7Only”>Microsoft Windows 7 or later</string>
1] To resolve this issue, it is recommended you update to the latest version of Windows 11/10 via Windows Update or upgrade using the Windows 10 ISO.
2] Alternatively, you can download the updated ADMX package for your version of Windows 10 – and then, use the updated SearchOCR.ADMX and SearchOCR.ADML files from it.
3] To work around the issue, you can manually tweak the SearchOCR.adml file.
Navigate to the file location below:
Locate and make a backup copy of SearchOCR.adml file in case that you make a mistake editing the file.
Open the file in a text editor – preferably Notepad++.
Locate Line 26.
Click to place your cursor on Line 26.
Now press the CTRL + ALT + Enter key combo to add a blank line. Line 26 should now be blank.
On the blank Line 26 copy and paste the text below:
<string id="Win7Only">Microsoft Windows 7 or later</string>
Press CTRL + S key combo to save the file.
The procedure above is for the United States English version. Other languages will have similar instructions to mitigate this gpedit.msc error.
We hope that this post helps you resolve the issue.
Read next: How to repair a corrupt Group Policy in Windows 11/10.