• Chris Keim

How to List All Users with HomeDrives


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.

  1. 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.

  1. Modify the $objReport variable with the path and name of the CSV file for export.

  2. Modify $strHomeDirectoryRoot with the UNC path to the root of the home drive location. Keep the \* at the end of the variable.

Have fun!


5 views0 comments