How To Schedule Start Up, Shut Down or Restart In macOS Ventura

The ability to schedule power events in System Preferences doesn't exist in macOS Ventura. Instead, if you really need to schedule a repeating shut down, start up, restart or other power event, you can do it using a simple Terminal command.
You can also watch this video at YouTube.
Watch more videos about related subjects: System Settings (173 videos).

Video Transcript

Hi, this is Gary with MacMost.com. Let me show you how to schedule Shutdown, Startup, and Restart times on your Mac in Ventura. 
MacMost is brought to you thanks to a great group of more than 1000 supporters. Go to MacMost.com/patreon. There you can read more about the Patreon Campaign. Join us and get exclusive content and course discounts.,
So when macOS Monterey and before there was a way to go into your System Preferences and then set a scheduled Startup time, Shutdown time, or Restart time on your Mac. Now most people should never really need this. You should just be able to put your Mac to Sleep, have it Sleep at night and do all of its different system maintenance then when you're not using it, and then just wake it up in the morning. There's really no reason to Shutdown your Mac. But if you did use this feature you may be shocked to find that in Ventura it is missing. It's not in System Settings. There is no way to set a Startup, Shutdown, Restart time or anything like that. But the functionality isn't completely gone. All that System Preferences did is give you a shortcut to setting something that you could do in Terminal. You could still do it with the Terminal in macOS Ventura. 
So in Terminal if you wanted to set, say, a Restart time to have your Mac restart every night at 3:00 a.m. you could do it using the PMSet Command. Now you have to start with sudo. Sudo mean that you want to run this command with Administrative privileges. So it is going to prompt you for a password. But if you don't start with sudo you're not going to be able to execute this command. Now do pmset. PM stands for power manager. What we're doing here is setting a repeating command. So its repeat and then what we want to repeat. So in this case restart. Then you have to give it the time that you want it to restart. But that starts first with the day of the week. So you use letters for each day. For instance, M is Monday. The other days of the week kind of make sense, but of course there are repeats. So T is Tuesday, W is Wednesday, Thursday though is R, Friday is F, Saturday is S, and Sunday is U. So if you want all seven days you just do that MTWRFSU. If you want to skip a day, like not have it do it on Wednesday, just remove that one. Then you have to give it a time. Time is in a pretty standard format. So 03 for 3:00 a.m.. Zero minutes, zero seconds. It is a 24 hour time. So if you wanted it to be at, say, 3 in the afternoon you would use 15. 
Now when you hit Return it is going to ask you for your password. That's what the sudo does. It is asking for administrative privileges. So note that you may not be able to actually use this command if you're user account is a standard user account, not an admin user account. So you can see executed without any errors. Not to check to see that it is there. We'll use pmset again. We don't need to use sudo for this because we're just checking. So we want to do dash  g and scheduled but just abbreviate it like that.
-g sched. Then we'll see there repeating power events restart at 3:00 a.m. every day.
Now let's say we didn't want to use Restart. We wanted to do Shutdown. Well, there is actually a Shutdown option as well. There is also Power On which will startup you're Mac if it has been shutdown or wakeorpoweron, all run together like one word, and that will either wakeup you Mac when it is sleeping or start it up if it has been shutdown. There is also Sleep and Wake. Then the very important one Cancel. This will erase all of the power events. So you do that and now if I look at the schedule its empty.
Now you can also schedule an event to happen at a specific time. So you can use
sudo pmset and instead of repeat you do schedule spelled out. Let's say you want to do a Restart and you want to put in quotes here when this is going to happen. So you want to give a date, like for instance 10/31/22 and then at a specific time. Like let's say 09:00:00 (9 a.m.) Now when you do that and you list what's there you'll see the schedule. So you can have multiple ones of these. Sometimes you may actually find one already there. If you have an Update coming, say a security update or minor software update, then your Mac may have scheduled a Restart for it. So if you see one there and it is set by something other than pmset it's probably something your Mac is going to do in order to perform an update or something.  
Now to cancel these you need to use sudo then pmset then schedule cancel and then the number. So you can see the number here on the left. So I'll cancel zero here and it cancels that and now my schedule is back to nothing. 
Now I know you're thinking this can't possibly be how Apple wants us to set these schedules. But it is!. I guess Apple has depreciated this feature to the point where it is not going to be in the Settings App anymore. It's something you have to do using the Terminal. The proof that this is how Apple wants you to do it here's the official page on the Apple site on how to do this. Notice you can select your version of macOS. I have it set to Monterey. It tells you to go into System Preferences. If I change the version to Ventura you could see here that Apple is asking you to use the Terminal to do this and giving you an example here. 
Now if you want to see what else the Power Manager can do you can do man for manual and then pmset. Then you get this very long manual page that gives you everything that pmset can do. pmset can actually do a lot more than just schedules and repeats. But you probably want to avoid doing anything else with it unless you really know what it is you're doing. Now before we looked at pmset -g for the schedule. But if we leave off sched and we put just -g we get a rundown of a lot of your other power settings including your Sleep Time. Sleep Time can be found in macOS Ventura by going to the Lock Screen right here. Then you'll see Turn Display Off When Inactive and you could see it set for 10 minutes. That indeed is the value there. If I were to change it to 5 minutes then if I were to reissue this command you could see now it's 5. Note you also get some other useful information here. Like, for instance, Display Sleep is currently being prevented by my Screen Recording App, as it should be.
Now if you want to use Repeated Power Event or Scheduling a lot one of the things you may want to look into is using Shortcuts to do it. In the Shortcuts App if you create a new shortcut you can search for Terminal here. You can select Run Shell script and you could put a shell script command in here. You can even set it to run as Administrator so it will prompt just like asking for sudo. Then if you're good at using Shortcuts you can feed in items into here. So you can have a shortcut that say asks for a specific time for a shutdown and then issues the Terminal command to schedule it. I'm not going to go any deeper into it here but it is something you may want to explore if you've got some programming skills. Of course if you do have programming skills then you'll probably end up wanting to use Terminal for this anyway.
I hope you found this useful. Thanks for watching.

Comments: 18 Comments

    William Dooley
    3 years ago

    I've been shutting my Mac down overnight to save electricity. However, it appears that Apple's XProtect Remediator runs only when the Mac is sleeping. Best to let the Mac sleep for a while before shutting it down for the night.

    3 years ago

    William: Not a good idea to shut down. Any energy savings is going to be negated by the extra work your Mac will do during the day to keep up, plus that will slow YOU down while you work too. https://macmost.com/a-beginners-guide-to-whether-to-shut-down-or-sleep-your-mac.html

    Rod Lee
    3 years ago

    Didn't know this existed. Thank you. Very useful.

    Mark Flannery
    3 years ago

    With the end of daylight time, I wanted to change the time my Mac came on every day. As I've done before, I went to Energy Saver and looked for the button that does this. After 20 minutes of fruitless searching, I chatted with Apple Support. They eventually took me to the information you presented here, which us where I should have started. Tell me again why Apple changed a simple procedure into a difficult one?

    3 years ago

    Mark: We can only guess. Could be they have plans to add it back, but it didn't make the cut for Ventura 13.0. Could be that they are just simplifying the Settings app and they removed some things to avoid bloat. After all, the vast majority of Mac users don't use this.

    Jim C
    3 years ago

    I've tried simultaneous restarts on all 4 macs a) to avoid shutting down and b) so the computer hosting the backup drives for all of them can is continuously available. But inevitably the restarts are badly coordinated and the host computer won't restart because one of the other devices is still connected to it. But when I give shutdown or startup commands using the terminal only the most recent command is saved. How to save a shutdown followed a 1/2 hour later by a startup?

    3 years ago

    Jim: Not sure. I thought while you can't do multiple shut downs or multiple start ups, you could do on of each. But maybe not. Keep experimenting with it.

    Mark
    3 years ago

    Hello, are you not able to set multiple pmset schedules? I am trying to do a poweron M-F @ 5:30 am and a shutdown at M-F @ 4pm

    3 years ago

    Mark: No. Pretty sure you couldn't do that before either. But you should be able to schedule an on and off, separately, Not just two ons or two offs. BUT: Is there any reason you need to do this? Remember it is important to let your Mac sleep. Typical usage is to let it sleep at night, don't shut it down at all. See https://macmost.com/a-beginners-guide-to-whether-to-shut-down-or-sleep-your-mac.html

    Mark
    3 years ago

    Gary, I was able to fine the Sudo CMD I was looking for, which is Sudo pmset repeat shutdown MTWRF 16:00:00 wakeorpoweron MTWRF 05:30:00. I have tried the sleep method on quite a few Mac's and they seem to run a lot worse over time...IMO.

    3 years ago

    Mark: Should be quite the opposite. Did you watch that video? Sleep allows you Mac to do maintenance while you are not using it. If you continue to not let your Mac sleep, you'll be slowing it down when you do use your Mac. I highly recommend letting it sleep. If you are having problems, they are probably for some other reason.

    chris wilder
    3 years ago

    Gary. Have my computer power on timer so like to shutdown before power off, and restart after power returns in the morning.
    Thought I'd followed your commands correctly, but when i check i have odd events showing that aren't mine and when i tried to cancel i received a Parsing Error?
    Time off would be 22:15:00 Time on 07:00:00
    All suggestions gratefully received. Chris W

    3 years ago

    chris: Sounds like you have a typo or something in your Terminal command. Look at the examples carefully.

    Jim C
    3 years ago

    Here: https://support.apple.com/en-ca/guide/mac-help/mchl40376151/13.0/mac/13.0. Apple says "Your Mac must be awake and you must be logged in for it to shut down at the scheduled time. If you’re not logged in or if your Mac is in sleep, it won’t shut down."
    I want to shut down briefly every night while I'm sleeping, so another Mac to which backup drives are connected can reboot. If I don't shut down the connected computers the host Mac can't reboot. But according to Apple I have to wake up

    Jim C
    3 years ago

    the sleeping Mac in order for the terminal shutdown command to work. So that's a wakeup, a shutdown, and shortly thereafter a poweron command, which the terminal won't accept. What to do?

    3 years ago

    Jim: Maybe look for a third-party app that does all of that? Is there a reason you want to reboot that other Mac? Maybe a problem you can solve in another way?

    Von
    3 years ago

    for those that are having trouble setting BOTH wake and shutdown times Apple provides the exact line code you need : sudo pmset repeat wakeorpoweron MTWRFSU 07:00:00 shutdown MTWRFSU 20:00:00

    this configures both wake and shutdown time

    Thierry
    3 years ago

    My Mac is used as a server and, while the other Macs have no trouble, I've discovered the windows PCs can't see the shared folders anymore, after a while.

    The solution is to restart the server daily.

    With previous versions of the system, the System Preferences allowed to "force" the reboot, whatever the circumstances.

    With this method, however, I've discovered the server doesn't restart, because there are users connected (which is not a problem) and waits for a human confirmation. :(

Comments are closed for this post.