Local Group Policy Settings
In Windows 7 you can configure Application Compatibility Diagnostic policies that define how Windows responds to compatibility issues. These policies are found in the Computer Configuration\Administrative Templates\System\Troubleshooting and Diagnostics\Application Compatibility Diagnostic. In a network setup with domain controllers you would edit the Domain Group Policy but for a single computer system edit the Local Group Policy by typing gpedit.msc in the Start search text box.
In the Local Group Policy Editor, expand the Computer Configuration node, then Administrative Templates, System, Troubleshooting and Diagnostics, and finally the Application Compatibility Diagnostic node: