This article was been published more than a year ago. The information 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.
- Open File Explorer
- Navigate to the root folder for home folders
- Copy the script to that folder
- Start Powershell using an account that has the necessary (typically an admin account)
- In Powershell, Navigate to the root folder for home folders
- 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).