I need a script to show a list of home directories that do not have a user assigned to them, this part was fairly easy. Where I am having trouble is sometimes we have a home directory without the original user but someone else has been assigned to it when the user left. I am trying to clear all of these up. I was able to get a list of HomeDirs without the original owner but now want to see which of those may have another user added to it. For the second part I am using Get-Acl to find who has rights but that lists all of our normal accounts that have access to everything.
I need a way to do a Where -eq anything except what is in the "exceptions list". This is what I have so far: