Prevent Macs from sleeping / WOL for mac?

Hello all, 

I'm new to IT Ninja, and a novice IT guy. 

We're in a big company, and there are a few Macs. We want to install patches to these macs through Kace. Things seem to work just fine, except... when the macs are asleep. I'm not sure why that is, don't have the same problem on Windows. 

I think this is probably a familiar issue any many of you need to support Macs in your companies. Is there a way to tell K1000 (or run a BASH script) to wake the mac up for patches? Alternatively, I can have the macs' sleep mode disabled but I rather not do that. What do you suggest? 

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: chucksteel 5 years ago
Red Belt

Top Answer

We use the pmset command to schedule a wake up event. This command can be sent via an online shell script to set the machine to wake every day at 3:00am:
pmset repeat wakeorpoweron MTWRFSU 03:00:00

You can also send a Wake-On-Lan packet to Apple hardware, although it only wakes machines that are asleep, not powered down. The advantage of the scheduled event is that it will power on systems or wake them (hence the wakeorpoweron option).

  • Chuck,

    Thanks for this! I tested this successfully on my own Mac Mini. I hope to have the computer wake and then within a few minutes send patches. - ss1980 5 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ