Closed mladminsmac closed 8 months ago
Should work without Intune. I'll take a better look next week and see if I can figure out whats going on. I wrote these against macOS 11.x so a lot has changed.
any updates here, this script shows as successful for me every time but users still remain admin
The script seemed to run fine for me, You need to modify the script to remove a # which comments out dseditgroup. This makes sure you've read the script before deploying since it's potentially very disruptive.
I've just re-written in ZSH and improved the logging.
Give it a try.
Before importing the script into InTune I tried running downgradeUsertoStandard.sh directly on a test Mac. After running I get the following in the log file:
I've not been able to figure out what this syntax error is. Does this script only work when run through InTune?