My programming knowledge lacks greatly. Curious if there is a batch script out there that would help greatly improve efficiency.
We have A huge number of employees that come and go. They are added to AD and then are disabled when they are terminated. The problem is, we have three "RDP" machines that all of these users get on. So when they log in Windows creates a local profile for them. Well now space is an issue and one of the ways we have saved quite a bit is deleting all of the disabled termed local profiles. The problem is currently I have to open the Domain controller on one screen and have the RDP machine on the other and look at each one, then delete. It takes a TON of time and i have to do it on every RDP machine considering they are not a roaming profile.
So my question is, is there a script that will look into your AD tree and find all of the Disabled accounts and then delete them on the computer that has the local profiles? Or vice versa, look at all of the local profiles, look them up in AD and if they are disabled, delete the profile? I can't imagine this is the only way to do this. Thoughts?