You are migrating from one file server to another, and the home drive configuration among user objects is inconsistent. How do you list all the user accounts that have home drives?
PowerShell Script
The following script will list all users that have home drives configured, along with their home drive configuration.
Modify the $objReport variable with the path and name of the CSV file for export.
To find users with a home drive that contains a specific path.
Modify the $objReport variable with the path and name of the CSV file for export.
Modify $strHomeDirectoryRoot with the UNC path to the root of the home drive location. Keep the \* at the end of the variable.
Have fun!
Comments