r/macsysadmin • • 1d ago

macOS Updates Help!!!

Apple Silicon fleet, never ADE-enrolled. Our in-house updater script does: elevate console user to admin via dseditgroup, then run startosinstall --user <admin> --stdinpass with a Secure-Token admin password piped in. Worked silently for Sequoia → Tahoe (25 → 26). Fails on Tahoe → Golden Gate (26 → 27) with ‘could not get authorization’ and falls back to GUI prompt. Did Apple change something in macOS 26, or am I missing a flag?

0 Upvotes

14 comments sorted by

14

u/eaglebtc Corporate 1d ago

This is not a good post title.

Did you also add --agreetolicense and --nointeraction ?

1

u/Legitimate-Jello2859 1d ago

Hi, okay

Yes it is already added
Current install cmd - ./startosinstall --agreetolicense --rebootdelay 60 --pidtosignal “$warnPID” --forcequitapps --nointeraction --user “$user” --stdinpass

12

u/Darkomen78 Consultation 1d ago

You missing to use an MDM to manage a Apple fleet.

-9

u/Legitimate-Jello2859 1d ago

This automatic script i prepared long back (may be in Sequoia) and works well in tahoe w/o MDM

19

u/Darkomen78 Consultation 1d ago

For many years now, no serious corporate Mac IT management has been possible without an MDM.

I’ve been managing Macs in many corporate enviroment for 20 years (start with DeployStudio and NetInstall); I’ve written custom scripts and still do, but at some point, you have to stop going against Apple’s will on certain critical issues.

2

u/egoomega 1d ago

I was once in an environment where they used Ansible w/ Jenkins and puppet to manage Mac fleet .. eventually it broke and they realized after getting jamf how foolish they were to have done it that way when it wasn’t for a budgetary reason jsut a “I’m a cool Linux guy” flex

4

u/eaglebtc Corporate 1d ago

Hold the phone ...

Whose admin password are you supplying for this script: the currently logged in user, or a system / IT-specific user like a service account?

And does that service account also have a valid secure token?

2

u/Legitimate-Jello2859 1d ago

Thanks — yes, this is a dedicated IT service account (xxxxxxx, created during Setup Assistant as the first user). Verified also.

For same-major updates this works silently. For 26 → 27 cross-major, startosinstall returns Error: could not get authorization... and falls back to GUI dialog.
Macs were never ADE-enrolled, Bootstrap Token not escrowed. Worked silently on these same Macs for 25 → 26 before.
Did Apple change something in Tahoe that requires a different approach for cross-major on Apple Silicon with no ADE?

1

u/eaglebtc Corporate 1d ago

Whether or not they did, your question is irrelevant. You need to get these Macs enrolled into a device management system (MDM) like Jamf, Intune, Kandji/Iru, Addigy, etc... Apple considers the old techniques of scripting updates to be unsafe and no longer allows them. For all intents and purposes, you are trying to manage a fleet of consumer devices now. You need MDM to prove to the computer that it needs to accept commands.

11

u/captnconnman Corporate 1d ago

This…seems like a horrible way to keep a fleet up-to-date. Do you have an MDM product at your company? Does the product support Macs? Do you have an Apple Business Manager tenant (and if you don’t, how is VPP even working)?

3

u/Studiolx-au 1d ago

Apple have been very clear about changes to what you can script and what parts of the os can be called upon via cli. Each major release removes legacy things that have been moved to modern ddm.

0

u/eaglebtc Corporate 1d ago

For the benefit of OP and any others who might find this, can you cite documentation where "Apple [has] been very clear about changes to what you can script" vis-à-vis OP's original question?

1

u/damienbarrett Corporate 1d ago

Wait, what’s the end goal here? To silently upgrade/update the OS via a script?

Have you looked at erase-install from Graham Pugh?