Avatar of Bud
Bud
Flag for United States of America asked on

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?
PowershellActive Directory

Avatar of undefined
Last Comment
Bud

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Bud

ASKER
Wow!  That was fast.  And it works great!!  Is it possible to write all the responses generated by the script to a text file for later review?
SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Bud

ASKER
Thank you oBdA!!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23