Registry modification REG file by SCCM 2007 R2 can deploy with this command:
regedit.exe /s MyRegFile.reg
where /s is used to suppress the confirmation dialog
BAT file, including this command, is created and it works on the way how we want.
Ex: If we execute this BAT manually, MyRegFile.reg creates all nesseccery REG folders and sub keys under:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags]
When this BAT is pushed by SCCM 2007 R2 on Windows Server 2008 or Windows 7 64-BIT MACHINES it creates folders and keys under:[HKEY_LOCAL_MACHINE\SOFTWARE
\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AppCompatFlags]
I'm not sure why it does working on this way, but the alternative to avoid this issue is to deploy this BAT file with GPO.
All REG folders and files are created under:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags]