How can I reset windows 7 file permissions?

Running this command at an elevated command prompt should get you back to a usable state.

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

Source: Even though this article is for Vista, it works for Windows 7 too - How do I restore security settings to a known working state?