RSSAmplifier

Feuerfest · Aug 8, 2026

Using PowerShell to get the size of folders (Get-FolderSize function)

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

On my gaming PC Windows complained that C:\ had only 10GB of free space left. Time to free up some space! In WindowsXP times I used a separate Program called GetFolderSize for this, but nowadays with PowerShell I was like: "Hey, I bet I can do this with PowerShell alone." After a bit of back & forth I came up with the following function: function Get-FolderSize { param([string]$Path = ".")…

Read on admin.brennt.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.