I run this Script from a policy with the Startup trigger selected and
ongoing frequency. #!/bin/sh# Name: remove-non-local-users## Purpose:
Removes all non-local accounts on machines to set Defaults.# Will spare
the 'fsadmin,' 'rduser,' and 'Shared' ...
I have this script working on a restart trigger in Big Sur. Slight
modification below but thats it. for i in $users; doif [[ $i = "fsadmin"
]] || [[ $i = "Shared" ]] || [[ $i = "rduser" ]] || [[ $i = "fsa" ]];
then continueelsejamf deleteAccount -use...