I'm not too sure about the cure beyond a reinstall (I don't use Windows a lot), but prevention of the problem is better. When you do get access again, set up another Admin account for yourself, and password protect it so that no one else knows it. That way, even when this happens, you've got a side door to get in and fix things.