Skip to content

List user home folder size

This article was been published more than 6months ago. The information contained herein may be outdated.

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

Be First to Comment

Leave a Reply