Schedule your Mac desktop computer to turn on or off
Schedule specific times for your Mac to start up, shut down, go to sleep or wake from sleep. You can do this if you want to make sure your Mac turns off when you aren’t working and turns on before you come to work.
On your Mac, choose Apple menu > System Preferences, then click Energy Saver.
Click Change Settings (next to Proxies) to open the Network pane of System Preferences.
Schedule a startup or wake time for your Mac: Select the “Start up or wake” tickbox. Choose a day or group of days from the pop-up menu, then enter a time.
Schedule a sleep, restart or shutdown time for your Mac: Select the “Sleep, restart or shut down” tickbox and choose the appropriate option from the pop-up menu on the left. Choose a day or group of days from the pop-up menu on the right, then enter a time.
Your Mac must be awake and you must be logged in for it to shut down at the scheduled time. If you are not logged in or your Mac is in sleep, it won’t shut down.
Note: If you have any documents open with unsaved changes, your Mac might not go to sleep or shut down when scheduled.