List user home folder size

Users tend to store all kinds of crud on their network home folders, which can be a constant source of frustration for SysAdmins. Luckily, it is fairly easy to get a list of the size of each folder, using a Powershell script. The script has already been made for us. It is discussed in detail here, and can be downloaded from here. You could do this from your local computer, or by remote desktop to the remote computer. The procedure is the same.

      1. Open File Explorer
      2. Navigate to the root folder for home folders
      3. Copy the script to that folder
      4. Start Powershell using an account that has the necessary (typically an admin account)
      5. In Powershell, Navigate to the root folder for home folders
      6. Run the script, using this command: .\Get-DirStats.ps1 >> c:\users\XXXX\Desktop\List.txt

(Replace XXXX with your user folder)

The output is a list of all user folders, by name. To sort it, simply import it to Excel.

The folder size is listed in Bytes. To get around this, simply divide them all by 1073741824 (individually, of course).






By posting a comment, you consent to our collecting the information you enter. See privacy policy for more information.

This site uses Akismet to reduce spam. Learn how your comment data is processed.