MicrosoftPowerShell

Checking an items or a folders size is pretty easy on all Windows computers.

Just right-tap the directory/item, click Properties, and you have the size in front of you.

Not everyone is as lucky as you.

PowerShell Folder Size

There surely has to be a quicker way to check the folder size.

For whatever reason, you might instantly get the size of a folder/directory usingWindows PowerShell.

We have a separate guide on how toget folder sizes using File Explorer and third-party apps.

Download Windows 11 IoT Enterprise LTSC ISO

These commands can be used together with switches and parameters to filter the results further.

Details:This command grabs the information from one or specified directories, including the sub-directories.

However, it does not display the empty directories.

Startup folder in all versions of Windows

The approximate size of the items inside the ISOs folder is 83 GBs.

Note:Replace GB and MB as needed.

If the parent directory has sub-directories, then the size of the items wouldnotbe accumulated in the results.

Download Windows 11 Version 24H2

To get the size of the items inside the sub-folders as well, you must use the -Recurse parameter.

This is used in conjecture with -ErrorAction SilentlyContinue to bypass directory access errors like Permission is denied etc.

That can also be accomplished using PowerShell.

Take your pick and find out the size of your folder(s).

1

Get weekly insights, tips and exclusive content delivered straight to your inbox.

Talk to us straight and get your questions answered right away

source: www.itechtics.com