Windows 7 Default Power Button Action
Here is how to change default action for Power button in Windows 7.
1) Click Start button
2) Righ-click on the Power button in lower right corner
3) Select Properties
4) Choose default Power button action (Switch user, Log off, Lock, Restart, Sleep, Hibernate or Shut down)
5) Click the OK button