Preventing Sleep during Imaging?

DavidM54

Bit poster
Hello,

I've noticed that while imaging our macs they will go into sleep mode and wait until they are woken to finish the task.

Is there a way to prevent this?

Thank you.

David.
 
We use a Execute Script towards the top before Applying OS X Image and then after the reboot (while it is in the OS) before all the settings and apps get installed.
#!/bin/sh
pmset sleep 0
pmset standby 0
pmset displaysleep 0

Then towards the end change them back
sudo pmset sleep 1
sudo pmset standby 1
sudo pmset displaysleep 10
 
Back
Top