5/15/2023 0 Comments File folder sizesGet-ChildItem (Alias: GCI) – This command grabs the information from one or specified directories, including the sub-directories – empty directories are not displayed or shown.The following are the 2 primary PowerShell cmdlets that can be used with switches and parameters to filter the results per your requirement to get the size of a folder. Read: Managing Files and Folders in Windows – Tips & Tricks 1] PowerShell commands to get folder size Get all subdirectory folder sizes using the PowerShell script.Get folder and sub-folder sizes with a time filter.Get the size of specific file-type items.We will discuss this topic under the following subheadings. How to get Folder Size using PowerShell in Windows 11/10įor one reason or another, you may need the size of a folder - for example, to estimate the time or duration it will take to move the folder (to another location on the local drive, external drive, or cloud storage) or if considerably a large folder to simply delete it to free up space on your hard drive - you can instantly get the size of a folder/directory using PowerShell. In this case, using the conventional way can take a while for the folder Properties window to finally populate the item’s size - more so, what’s shown might not be the actual size of the folder. In this post, we will show you how to check or get Folder Size using PowerShell in Windows 11/10.Ī use-case where you may want to use PowerShell instead of the conventional way to get a folder would be if the size of the item or folder is significantly larger - for example, greater than 100 GB. Typically, on a Windows-based PC, you can check an item or a folder’s size by just right-clicking the item or folder and then selecting Properties from the context menu.
0 Comments
Leave a Reply. |