Unshare/delete multiple home folders
I currently have a large number of users to be deleted, all with home folders on various servers. The issue is, when the ID's are deleted from AD, the home folders have to be unshared and removed manually.
At the moment, the only solution is to do a dump of the home drive locations (using the Hyena application), connect to each server through "Computer Management", unshare the home drive, and manually delete the folder.
Is there any tool that can do this, or any other way to automate this process?