Compare CSV to AD to determine if former employee accounts are still active
I need to compare a CSV file containing employees who have left the company to AD to ensure their accounts have been disabled. If the account is still active it needs to be disabled and moved to an OU name Departed. Is there a way to do this using PowerShell?