I am using that 'unbindAD.sh' script provided on JAMFnation script sections. The policy trigger is set at 'STARTUP' and script priority 'AFTER'
script is simply:
echo "Unbinding the computer from Active Directory..."
/usr/sbin/dsconfigad -r -u "$username" -p "$password"
echo "Restarting Directory Services..."
/usr/bin/killall DirectoryService
is there a script somewhere to delete the 'domain account' after the unbind so users that are cached cannot login ?
