Our home directories are created with the name of %USERNAME%. Is there a way to determine which home directories do not have a corresponding AD account so I can delete them? We have many of these "orphaned" directories that need to be deleted. Thanks!
Announcement
Collapse
No announcement yet.
Remove home directory of no-longer-employed users
Collapse
X
-
Re: Remove home directory of no-longer-employed users
Hyena wouldn't have a way to do that one, unfortunately. The only theory I can come up would be to display your current users home drive information in Hyena, then save that out to a file. If you can then get a file with all of your current home drives, you could possibly use Access to compare the two and show you the differences between them.
I don't know how difficult this would be to setup, but seems like you should still be able to save time over manually going through them.
-
Re: Remove home directory of no-longer-employed users
We use a setup where the users home directory is the same folder and share name as their user ID. To find the orphaned ones I wrote a VBScript that uses XCACLS to read the permissions on the shares I feed it with an Excel spreadsheet and then write back to the spreadsheet if there are no user IDs in the permissions that match the shares name. What I get is a list of shares with permissions that aren't right and can manually check the few that aren't.
When I run it against 5000 user shares I usually get 100 that need to be looked at because they are orphaned or have wrong permissions.
Comment
Comment