

But it is much easier (and also less error-prone) to resort to a proven tool like the Sysinternals interpretation of the popular Unix tool du.


Of course, there is always the possibility of rolling your own, for example as a PowerShell script. But the possibly obvious choice, the command diruse.exe, cannot be used with user profiles – like many other tools it does not know how to handle the directory junctions in V2 profiles. There are several ways to determine the size of a directory from the command line. Such a situation is common with Windows user profiles. Imagine you need to determine the size of a directory, but you do not have access to it and cannot change the permissions, either.
