I'm trying to modify this script to only delete accounts older than "X"
days !/bin/bash
####################################################################
DeleteADUsers.sh Requires Mac OS X 10.10 or newer If run as root,
deletes all AD accounts If ...
I want to use the above script to delete AD users older than "X" days.
I've tried modifying it, but my scripting skills could use a bit more
work. The script works pretty well, but I noticed a couple strange
behaviors that maybe someone with more kno...
Is it possible (probably, but my noob is showing), to edit the script
posted by @nigelg to only delete AD users that have not logged in for
"X" days? The script works, as is, but we would only like to delete user
accounts that haven't been used in 30...