Preventing Sleep during Imaging?

Discussion in 'Parallels Mac Management for Microsoft SCCM' started by DavidM54, Oct 18, 2018.

  1. DavidM54

    DavidM54 Bit Poster

    Messages:
    8
    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.
     
  2. PVCIT

    PVCIT Bit Poster

    Messages:
    8
    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
     
    DavidM54 likes this.
  3. DavidM54

    DavidM54 Bit Poster

    Messages:
    8
    Ah, that's great.

    Thank you for that.
     

Share This Page