Skip to content

Instantly share code, notes, and snippets.

@CarloCattano
Created May 18, 2022 08:59
Show Gist options
  • Save CarloCattano/355b82910e65df6da5f375052121c448 to your computer and use it in GitHub Desktop.
Save CarloCattano/355b82910e65df6da5f375052121c448 to your computer and use it in GitHub Desktop.

Find largest 10 files

gci -r|sort -descending -property length | select -first 10 name, @{Name="Gigabytes";Expression={[Math]::round($_.length / 1GB, 2)}}

search for files

Get-Childitem -Path D:\ -Include *name.wav* -File -Recurse -ErrorAction SilentlyContinue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment