You can set that in the control panel. When I open my control panel i have it set to Category and then select Hardware and Sound from the left menu. I see this, then select the Power Options menu item for "Require a password...."