Try Disk Usage, a new tool to analyze hard drive space on Windows 10

Microsoft is creating a built-in Disk Usage command line utility to report how much disk space a folder uses.

Over time, it's common to run out of storage space and not know which programs or files are using up hard drive space. Previously, users needed to download free tools like TreeSize to list the directories using the most space.

While testing with the new Windows 10 Insider versions 20277 and 21277 released last week, some people have found out that Microsoft has quietly introduced the new Disk Usage utility. This utility can scan your entire drive or specified folders and report how many each folder is in use.

Disk Usage, a new tool to analyze hard drive space on Windows 10

Disk Usage is located in C:WindowsSystem32diskusage.exe and will display the user guide when entering diskusage /? , as shown below.

Try Disk Usage, a new tool to analyze hard drive space on Windows 10 Picture 1

This program is in the early stages of development, some features are not working as expected and there are some typos in the user manual.

For those interested, here is the complete manual:

DiskUsage - Disk Usage Description: Summarize disk usage recursively for the given directory. Usage : diskusage [Options] [Directory] Options : /a, /systemAndReserve displays size for system files and reserved space /c, /csv displays in csv format /d, /maxDepth=N displays directory information only if it is N or fewer levels below command line argument /e, /minFileSize=SIZE displays directory information only if its FileSize is greater or equal than SIZE /f, /minSizeOnDisk=SIZE displays directory information only if its SizeOnDisk is greater or equal than SIZE /g, /displayFlag=FLAG specifies the flags value to determin which column(s) to display column value description SizeOnDisk 0x001 the on disk size FileSize 0x002 the end of file size SizePerDir 0x004 sum of SizeOnDisk for top level child Files 0x008 number of child files ChildDirs 0x010 number of child directories FilesPerDir 0x020 number of top level child files DirsPerDir 0x040 number of top level child directories CreationTime 0x080 file creation timestamp LastAccessTime 0x100 file last access timestamp LastWriteTime 0x200 file last write timestamp Attributes 0x400 file attributes /h, /humanReadable displays size in human readable format /i, /iniFile=FILE takes all the parameters from an INI file. NOTE: SCENARIO name must be speificed via /j (/scenario) /j, /secnario=SCENARIO specifies the scenario name for the INI file /l, /allLinks count all hardlinks separately (By default, files with multiple hardlinks are counted only once towards the first link name) /m, /multipleName count only files with more than one link names /n, /nameFilter=FILTER count only files whose name matches the name filter /p, /preferredPath=PATH count files with multiple link names towards the first link that's under PATH if it exists NOTE: This options must not be specified togerther with /l (/allLinks) /q, /virtual recurse into virtual directories /r, /skipReparse skip recursing into reparse directories /s, /skipResurse skip recursing into child directories when calculating sizes /t, /TopDirectory=N displays Top N directories by SizeOnDisk in descending order /u, /TopFile=N displays Top N files by SizeOnDisk in descending order /v, /verbose displays verbose error information /x, /clearDefault do not display the default selected columns

Try a new Disk Usage utility

Microsoft's new Disk Usage tool is in the early stages of development, so it's pretty basic. Let's see how it works.

By default, when running Disk Usage, it will report file and folder sizes in bytes, which is not as useful as displaying the size in MB, GB, etc. Thankfully, Microsoft has included the argument. a / h to display the amount of human readable capacity. used in the examples below.

When I ran this test on a virtual machine, for example there was not much data or large programs installed, so I tested it with the C: Windows directory .

Since this tool requires administrative privileges, you must first open Command Prompt with admin privileges on Windows 10 before using diskusage.exe, otherwise it will show an error.

To view folders in C: Windows that are larger than 1GB, for example run the following command:

diskusage /minFileSize=1073741824 /h c:windows

As you can see below, Disk Usage has listed all folders, including the C: Windows folder, which is larger than 1GB.

Try Disk Usage, a new tool to analyze hard drive space on Windows 10 Picture 2

Disk Usage also includes a feature that lists the top N (number) folders on the drive or in a specified directory. To do this, use the command / t = [number] as follows:

diskusage /t=5 /h c:windows

Unfortunately, the output of this command is not as expected. As you can see below, it shows an ordered list of 5 folders, but based on the previous commands, they are not the directories that the example expected.

Try Disk Usage, a new tool to analyze hard drive space on Windows 10 Picture 3

We guessed that the above command shows the largest directories, without looking at the files in their subdirectories.

Disk Usage also includes other features such as listing the files with the largest capacity using the / u option , as shown in the following command:

diskusage /u=5 /h c:windows

As you can see below, instead of displaying the 5 largest folders, Disk Usage displays the 5 largest files.

Try Disk Usage, a new tool to analyze hard drive space on Windows 10 Picture 4

Other features included in Disk Usage include creating a configuration file that contains the options you want to use automatically, customizing the output, and the ability to ignore different types of folders.

As mentioned before, Disk Usage is still in its infancy and there's no word on when it will officially appear. You can test it out now by installing the latest Windows 10 Insider builds.

5 ★ | 2 Vote

May be interested

  • How to check the drive in Windows 10How to check the drive in Windows 10
    microsoft hard drive repair and scanning tool, check disk (chkdsk) has been around for over 30 years and is still useful today. users running microsoft's latest operating system can still use this tool to check the drive. this article will guide you to check the drive on windows 10.
  • Partition to create the second hard drive on WindowsPartition to create the second hard drive on Windows
    if you want to split the hard drive into different parts, you can use partitions to do that. with disk management - a default windows tool, we will introduce you to all terms and instructions on how to resize, delete and create partitions. basically, this is a virtual process to add additional hard drives.
  • Know about bad sectors on your hard driveKnow about bad sectors on your hard drive
    hard disk after a period of use will encounter some signs such as failing to boot, the computer hangs while the hard drive signal light is still on continuously ... that may be the indication that the drive your hard drive may have a bad sector error. therefore, you should regularly check the health status of your hard drive and always backup in case of data loss due to bad sectors hard drive.
  • How to transfer free space from one drive to another in Windows 10How to transfer free space from one drive to another in Windows 10
    adding free space from drive to drive is the best way to make full use of hard drive space. excess space in large partition will not be wasted and the problem of lack of memory in smaller drive is also solved.
  • How to free up hard drive space with CompactGUIHow to free up hard drive space with CompactGUI
    if you're running out of hard drive space and aren't willing to spend more to upgrade, data compression will be helpful in freeing up hard drive space and the best tool for this is compactgui.
  • Find and delete junk files to increase disk spaceFind and delete junk files to increase disk space
    keeping your windows computer clean is a job that few people notice, but it is necessary. there are many reasons why your hard drive gets full quickly.
  • Learn about HDD hard driveLearn about HDD hard drive
    hard disk drive (hard disk drive) is the main and largest hardware device that stores data in a computer. operating systems, software and other files are stored on the hdd.
  • Methods to expand storage memory for computers quicklyMethods to expand storage memory for computers quickly
    when a 'low disk space' warning appears on your computer, this means that your disk space is extremely low. you need to delete some things to free up space, but in fact you can't give up anything on your computer because it's all important data.
  • Some tips to free up Windows 10 computer hard drive spaceSome tips to free up Windows 10 computer hard drive space
    as a habit, users often store a lot of files on a computer, even files that they never use. this is one of the invisible reasons that consumes hard drive space on a computer that users do not know.
  • 7 tools to increase hard drive performance on Windows7 tools to increase hard drive performance on Windows
    after a period of use, the windows computer will be slow. admittedly, windows 10 is better than previous versions, but this problem still occurs. this article will introduce you to some tools to increase hard drive performance