How can I schedule to deletion of users from Active Directory? In this scenario HR provide you with a file (could be a db table) of users to be removed from Active Directory, the file is placed in the same location each day/week.
If the file has a Delete column in the file and the value is True then the user will be deleted from AD, you can create a scheduled job for this to pick up the file and process it, there is an option in the schedule to receive the log via email. Set the subject line to ‘Deleted users’ (or similar). You can append a date and time to the log for your records.
Example CSV:
sAMAccountName,Delete
tuser,True
jsmith,True
pjones,True