Skip to main content

How to Find Large Files on a Windows Server

This article provides instructions for a Windows Server administrator to identify large files on a server. Identifying large files helps manage disk space and determine which files are consuming the most storage.

This article provides instructions for a Windows Server administrator to identify large files on a server. Identifying large files helps manage disk space and determine which files are consuming the most storage.

Before you begin

You will need:

  • Administrator access to the Windows Server.

  • A stable connection to the server via Remote Desktop or a direct management console.

Identify large files using File Explorer

You can use the built-in File Explorer to filter for files based on size.

  1. Open File Explorer.

  2. Navigate to the directory you wish to search (e.g., C:\).

  3. Click into the search box in the upper-right corner of the window.

  4. Type size:huge to find files larger than 128 MB, or size:gigantic to find files larger than 4 GB.

  5. Alternatively, type a specific size, such as size:>500MB, to find files larger than 500 MB.

  6. Once the results appear, click the Size column header to sort the files from largest to smallest.

Identify large files using PowerShell

PowerShell allows you to generate a list of files larger than a specific size across a directory and its subdirectories.

  1. Open PowerShell as an Administrator.

  2. Run the following command to find files larger than 500 MB on the C: drive:

    Get-ChildItem -Path C:\ -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.Length -gt 500MB } | Select-Object Full_Path, @{Name="Size_MB";Expression={[Math]::Round($_.Length / 1MB, 2)}} | Sort-Object Size_MB -Descending

  3. Review the list of file paths and their sizes in megabytes.

Note: The Size_MB column will display the size of the file in MB. You can adjust the 500MB value in the command to suit your specific needs.

Confirm the result

  • The search results or PowerShell output will display a list of files.

  • You can verify the size of a specific file by right-clicking it and selecting Properties.

Limitations

  • Searching the entire root directory (e.g., C:\) may take several minutes depending on the number of files and the speed of the storage media.

  • Some system folders may be restricted; the PowerShell command above includes -ErrorAction SilentlyContinue to skip folders that the system prevents you from accessing.

Did this answer your question?