- Code: Select all
REG EXPORT HKEY_CLASSES_ROOT %~dp0Logs\%COMPUTERNAME%\HKEY_CLASSES_ROOT.reg
REG EXPORT HKEY_CURRENT_USER %~dp0Logs\%COMPUTERNAME%\HKEY_CURRENT_USER.reg
REG EXPORT HKEY_LOCAL_MACHINE %~dp0Logs\%COMPUTERNAME%\HKEY_LOCAL_MACHINE.reg
REG EXPORT HKEY_USERS %~dp0Logs\%COMPUTERNAME%\HKEY_USERS.reg
REG EXPORT HKEY_CURRENT_CONFIG %~dp0Logs\%COMPUTERNAME%\HKEY_CURRENT_CONFIG.reg
With these files i want to extract the currently enabled GPO setting from the registry keys.
i have only thought of two was i could do this ,
1. find some sort of software that can import the .reg file and find the enabled GPO registry keys within it.
or
2. write up a batch file that will compare the text of the HKEY_LOCAL_MACHINE.reg file to a list of know gpo registry keys, and display the key present in the .reg file.
Microsoft provides a .xml file with info on what registry keys are links to which GPO settings. the file can be found here.
- Code: Select all
http://www.microsoft.com/en-us/download/details.aspx?id=25250
does anyone know of any other way to find the gpo setting from .reg file or know of a software that could help me analyze the .reg file.
any help is appreciated.


