When we all went home when Covid struck, I had a day or so to setup some local accounts for people to use if their usual logins failed. I created both a standard and an admin account. These were pushed out via Jamf and setup on all computers we have on our instance. Now that things are slowly returning to normal, I am wanting to remove these accounts from some computers that no longer need them. I have found that just removing them from the policy doesn't remove the account. Is there a way to do this? I assume I will need a script of some kind. If there is a way to do it through the GUI, that would be best...
@kwoodard The sysadminctl tool is the preferred way to remove an account these days. See https://osxbytes.wordpress.com/2017/03/15/how-to-remove-accounts-cleanly/ for a writeup on usage.
If the account is named the same thing on all Macs you could just send the following command via a Policy using a Files and Processes payload:
/usr/sbin/sysadminctl -deleteUser AccountNameToDelete