lets tidy up#!/bin/bash #Variables current_admin="Administrator"
new_admin="Robert" if id "$new_admin" &>/dev/null; then echo "Username
already exist." exit 1 else if id "$current_admin" &>/dev/null; then
sudo dscl . -change "/Users/$current_admin" R...
yea sorry my bad, change last line (sudo dseditgroup -o edit -u "Robert"
-p -a "$Robert" -t user admin )with the one below. -p parameter requires
user password/usr/bin/dscl . -append /Groups/admin GroupMembership
Robert
MDM profile does not expires, the jamf built-in certificate does, and
when it happens, simply the school MDM will not be able to communicate
with your laptop. There will be no data or access related issue happens.
However, if your device is registere...
Ideal way would be using jamf connect and migrate account option.
"Allows existing local accounts to be connected to a network
account.This setting is typically used when you want a user's existing
local account to have the same username and password...