M1 secure token issues on Agent 39
This is to help fix the issues of the secure token not working properly after the Agent 39 upgrade.
Symptoms
Devices are not able to patch OS updates
Steps to resolution
- Start by removing the Automox Service Account by using the following command:
- sudo /usr/bin/dscl . -delete /Users/_automoxserviceaccount
- Attempt to enable the Automox Service account again using the following command:
- sudo /usr/local/bin/amagent --adminuser '<admin_username>' --adminpass '<admin_password>
sudo /usr/local/bin/amagent --automox-service-account enable
sudo /usr/local/bin/amagent --automox-user-prompt enable
- If these steps do not work, you will want to do the following:
- Remove the Automox Agent, this can be done either manually or through an MDM provider
To remove the Agent use these commands- sudo launchctl unload /Library/LaunchDaemons/com.automox.agent.plist
- sudo /usr/local/bin/amagent --deregister
- sudo rm -f /usr/local/bin/amagent
- sudo rm -rf "/Library/Application Support/Automox/"
- Make sure that the Automox Service Account has been removed, if it has not been removed run the following command:
- sudo /usr/bin/dscl . -delete /Users/_automoxserviceaccount
- Reinstall the Automox Agent
- Remove the Automox Agent, this can be done either manually or through an MDM provider