I am looking to clean up a large amount of user home directories. I am trying to find a way to find user directories that belong to disabled user accounts or belong to no user account at all. Does anyone have a process for this or know of a utility that will generate a report with this information and then move the specifics disabled home drives to a folder in bulk? I prefere not to use a third party software maybe a scrypt or batch file...how to do it step by step.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!