Here is an example of a Windows PowerShell script to measure the size of the children folders:
Open Windows PowerShell as administrator and run the script below. Repeat it a few times by editing the master folder to identify the culprit.
Get-ChildItem "C:\" -Directory -Force | ForEach-Object { $size = (Get-ChildItem $_.FullName -Recurse -Force -File -Attributes !ReparsePoint -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum [PSCustomObject]@{ Folder = $_.FullName SizeGB = [math]::Round(($size / 1GB), 2) } } | Sort-Object SizeGB -Descending | Select-Object -First 20
No comments:
Post a Comment