

LGPO.exe /parse /m %windir%\system32\grouppolicy\machine\registry.pol > registry.txt 2>&1

To detect registry.pol corruption in an automated way, use the following steps with an Endpoint Management tool such as Symantec ITMS: If using a tool such as Notepad++ to view the file, select all the text in the file after opening and convert it to UTF-8 (don't save it like this, this is just for ease of viewing). You can also manually open a registry.pol file in a text editor like Windows Notepad to see if the file is structured as expected.
