PowerShell: Reducir tamaño de archivos

Posicionarse en la ruta donde se encuentren los archivos que queremos reducir de tamaño:




Get-Childitem -Path . -File -Recurse -ErrorAction SilentlyContinue | Where-Object {$_.Length -gt 100MB} | clear-content