Depending on the windows settings, I used to go to power settings and change it there. (Mine has an icon on the bottom right corner)

Also most shut down from the start menu (bottom left corner)