Unable to update mac with script

expand collapsive

Hi Hexnode users, I have been trying to update our macs with custom script from the portal, 12.1 to 12.2 Monterey. I have been waiting for hours on end and nothings happening! The status is shown as initiated and have been so for almost 3 hours. I am so spent right now…been at it for a while now and cant seem to figure out why???

All Replies

  • Participant

    Kipp

    Participant

    I know that feeling @gable-lapis, updates are tiring, apple churns out these updates and we have to ensure if its stable enough to be deployed for all. Have you tried running the script from the terminal?? What was the command again

  • Participant

    gable lapis

    Participant

    Hi @Kipp, thank you so much, someone understands, I ran the command “ softwareupdate –ia --restart“. Running from the terminal asks for admin password, usually running from the portal does not require a password.

  • Hexnode

    Ethan Miller

    Moderator

    Hi there,

    Thank you for connecting with us on Hexnode Connect!

    From your conversation, you might have guessed that this would be an exception for M1 devices. M1 devices require admin credentials to initiate installation action. We suggest using the fetch installer command to fetch the specific OS version of your requirement and initiate installation by passing admin credentials to your device through the script. Use the command:

    Once the installer is fetched, use the command:

    Pass the device admin credentials to the device by replacing <Password> and <adminuser> to execute the upgrade action without any user interaction.
    Hexnode facilitates this without any user interaction using custom scripts. Please note that the script may be in the “Initiated” state for a while. Major updates are large in size and may take a while to download. Ensure your device is plugged in and has sufficient space to download updates. Feel free to reach out to us for any queries.

    Regards,

    Ethan Miller
    Hexnode UEM

    Solution