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.
Open File Explorer.
Navigate to the directory you wish to search (e.g.,
C:\).Click into the search box in the upper-right corner of the window.
Type
size:hugeto find files larger than 128 MB, orsize:giganticto find files larger than 4 GB.Alternatively, type a specific size, such as
size:>500MB, to find files larger than 500 MB.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.
Open PowerShell as an Administrator.
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 -DescendingReview 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 SilentlyContinueto skip folders that the system prevents you from accessing.
