Monday, September 9, 2013

Script to find files in size greater than desired size

Very useful when you need to find large size files on your system. This command can be run locally or on remote system as long as you have admin rights to remote system.

Get-ChildItem \\servername\c$ -Recurse -ErrorAction "SilentlyContinue" | Where-Object {$_.Length -gt 100MB} | Export-Csv c:\temp\myLargeFilesOnC_Report1.csv

No comments:

Post a Comment