It will depend on your OS. In Windows 7 its
Control Panel\All Control Panel Items\Power Options\Edit Plan Settings
Choose the setting you want from the drop down box.
Can't remember XP, never used Vista long enough to find out and I imagine Windows 8 will be the same as 7.