Programmatically get localized user-friendly group policy names in Windows
-
11-03-2021 - |
Question
Please take a look at this screenshot (gpedit.msc) of local group policy settings on my computer:
Is there any way to retrieve user-friendly (localized) group policy names (circled in the screenshot above) from a C++ program (or maybe using WMI)?
Solution
According to Managing Group Policy ADMX Files Step-by-Step Guide you can find, on your W2K8 server, in the file C:\Windows\PolicyDefinitions\Desktop.admx
an XML description of what is circled in the screenshot above. You can link the description and help tag of this file with C:\Windows\PolicyDefinitions\Desktop.adml
an XML-based ADM files that contain language-specific settings.
Edited
To parse XML in C++ I use to use these two libraries :
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow