Find accounts with home folders by naming convention.

I found myself doing this today, basically we have a number of account types (service accounts, resource accounts) that should not have home directories. however, due to incorrect provisioning choices they do. We wanted to identify these so we could get rid of the attribute value on the account and blast those folders away.

I of course do everything connected to ActiveRoles through connect-QADService-proxy but I think this would work against your native AD also (correct me if I am wrong). You do need the Quest ActiveRoles Management Shell installed though:

This of course outputs right into the shell but it gives me at a glance the information I am interested in, so I can get a feel for how many accounts out there have a home folder when they shouldn’t, but also if they might be in use or something left over from ages ago. Of course, you can always pipe this to an output file if you need to keep it for action.