Removing profiles from computer that have no domain account.
Posted on 2014-09-18
I am looking for a method to remove user profiles from Windows 7 computers in our domain that do not have a corresponding AD account. For example, user 123User has left the company, and has worked on many of the computers in several locations. To limit legal discovery issues, we would like to remove this users profile from domain computers when their AD account is deleted.
We had a script for the older Windows XP machines, and as part of the script it excluded Administrator, Default User etc accounts from deletion. I would like the same foe Windows 7, but my scripting is weak, and I cannot master the Google Fu to properly search for what I am looking for.
Help me, Experts-Exchange, you are my only hope!