I've got a txt file that has 180 email address that need to be removed from user accounts within our AD and I'd prefer to do it via a Power shell script versus manually, mostly because I know there will be another list of coming out soon. I have all the email address in a single text file and basically I want to simply remove the email address from the corresponding user in Active Directory. Though I'd like a script that does both find the user and remove the email address, I need to do it in two steps. I need to find the users corresponding to the email first so I can confirm there aren't multiple users using that email and then the second step of removing the email address from that account. I don't want to disable the users. Any suggestions or examples anyone can share would be greatly appreciated.
Thanks,
Bob