/build/static/layout/Breadcrumb_cap_w.png

Report on Large Files using K1000 Custom Inventory Rule

I've had this question a few times, and thought this would make a good rule. 

ShellCommandTextReturn(powershell "Get-ChildItem c:\users -Recurse | Where-Object {$_.Length -gt 200MB} | sort length")

This rulle looks in C:\users and all sub directories for any files larger than 200MB, and sorts the output largest to smallest. 

96ZdI0.png



Comments

This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ