After installing the April Cumulative Update KB3147458, the following error may pop up when opening the Group Policy Editor.
Resource ‘$(string.RequirePrivateStoreOnly)’ referenced in attribute displayName could not be found.
File C:\WINDOWS\PolicyDefinitions\WindowsStore.admx, line 140, column 9
Although dismissing the error messages (occurs twice) should allow you to use the Group Policy Editor, the “Store” category may be missing from Windows Components, under Computer Configuration and User Configuration.
This is probably because the update added a new Policy setting into the WindowsStore.admx file, but didn’t add the corresponding string ID in WindowsStore.adml. Microsoft is aware of this issue, as John Wink [MSFT] is following up KB3147458 issues; hopefully, this little glitch will be fixed soon. Until then, here is how to prevent the error from occurring when opening the Group Policy Editor.
- First, backup the file
C:\Windows\PolicyDefinitions\WindowsStore.admx
. - Open a Command Prompt (Admin) window.
- Type the following commands one by one and press ENTER after each command:
takeown /f C:\Windows\PolicyDefinitions\WindowsStore.admx icacls C:\Windows\PolicyDefinitions\WindowsStore.admx /grant Administrators:F notepad C:\Windows\PolicyDefinitions\WindowsStore.admx
- In Notepad, go to Line 133 in the file (Ctrl + G)
- Select the contents from line 133 to 166 (including), delete those lines, and save the file.
- Then type the following command to restore ownership back to TrustedInstaller
icacls C:\Windows\PolicyDefinitions\WindowsStore.admx /setowner "NT Service\TrustedInstaller"
You should no longer get the error when launching Group Policy Editor. Additionally, the “Store” category would be back under “Administrative Templates\Windows Components”.
For reference, these are the lines you want to clear.
<policy name="RequirePrivateStoreOnly_1" class="User" displayName="$(string.RequirePrivateStoreOnly)" explainText="$(string.RequirePrivateStoreOnly_Help)" key="Software\Policies\Microsoft\WindowsStore" valueName="RequirePrivateStoreOnly" > <parentCategory ref="WindowsStore" /> <supportedOn ref="windows:SUPPORTED_Windows_10_0" /> <enabledValue> <decimal value="1" /> </enabledValue> <disabledValue> <decimal value="0" /> </disabledValue> </policy> <policy name="RequirePrivateStoreOnly_2" class="Machine" displayName="$(string.RequirePrivateStoreOnly)" explainText="$(string.RequirePrivateStoreOnly_Help)" key="Software\Policies\Microsoft\WindowsStore" valueName="RequirePrivateStoreOnly" > <parentCategory ref="WindowsStore" /> <supportedOn ref="windows:SUPPORTED_Windows_10_0" /> <enabledValue> <decimal value="1" /> </enabledValue> <disabledValue> <decimal value="0" /> </disabledValue> </policy>
Microsoft might be adding the necessary string IDs to the string table in the corresponding ADML file in a future update, which should fix the error.
One small request: If you liked this post, please share this?
One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
can you provide a bat-file for this?
thanks
I don’t get this when I open up the console. I see the error in the policy whenever I click on it in the editor. I tried this anyway just to see if it would resolve the issue but to no avail. Any ideas?
@diabetikcrysis: Can you post the exact error that appears when you click the Policy?
Thank you. Worked like a charm!
You are a life saver. Was scratching my head over this issue for quite some time.
Thanks! Worked like a charm!
thanks , worked perfectly !!
That “fix” was problematic for me. Although it fixed the Group Policy error message, when I ran SFC /SCANNOW it found corruption that it couldn’t repair. So I ran DISM /online /cleanup-image /restorehealth and it restored the component store corruption. Then, SFC /SCANNOW was able to fix the corrupted file. After looking in the CBS log, the file that it “repaired” was the WindowsStore.admx that I modified using that link. So, I think for now, I’d prefer to live with the gpedit.msc error message.
Hi Ronnie, The “corruption” which SFC reports.. pointing to the ADMX file, can be ignored safely.
you make my PC perfect again. Thanks !!
im having this problem since yesterday… any easy solution for dummies?
Thank you for your work and this post. I fixed this question successfully.
I used the solution solving the problem successfully
Used this workaround and it seemed to work, but now SFC is having difficulties with hashes of the windowsstore.admx file.
It’s expected. Any modification of protected files will result in SFC replacing them.
And, May cumulative update fixes the Group Policy Editor error.