Script to update and upgrade macOS devices

expand collapsive

Hi all, I wanted to know if there is a way to silently deploy updates and simultaneously upgrade macOS devices. The script I found, prompts the users for the admin credentials to proceed, which disturbs the workflow as most of the users don’t know that. Is it possible to achieve silent update installation through a script?

All Replies

  • Hi @Deborah. Thanks for reaching out on Hexnode Connect!

    Yes, it’s possible to achieve silent update installation on macOS devices via scripts. You can use the following script to install OS updates via Hexnode’s Execute Custom Script feature:

    Usually, minor updates or patches will not require admin credentials. However, if you want to deploy a major OS upgrade, the device will prompt for the admin credentials in some cases. This prompt can be avoided bypassing the admin credentials as a part of the following script:

    In the above script, please replace <OS Version> with the specific version of the operating system to which you wish to update. Similarly, replace <Username> and <Password> with the admin’s username and password, respectively. On executing the script, it accepts the desired OS version as input, installs the appropriate installer app for that version, and begins the installation process for the update. For more detailed explanation, please refer to our help documentation on scripts to deploy OS updates and upgrades. I hope this helps, please reach out to us in case of any further queries.

    Carl Hughes
    Hexnode UEM