Skip to content

Instantly share code, notes, and snippets.

@sgaulding
Created November 13, 2018 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgaulding/42ed7114b0580a0e0140d5e86415e209 to your computer and use it in GitHub Desktop.
Save sgaulding/42ed7114b0580a0e0140d5e86415e209 to your computer and use it in GitHub Desktop.
Get-ChildItem -Recurse -Directory | Select-Object @{Name="Count"; Expression={(Get-ChildItem $_.FullName -File).Count}}, @{Name="Directory"; Expression={$_.FullName}}, @{Name="LastWriteTime"; Expression={$_.LastWriteTime}} | Sort-Object -Property LastWriteTime -Descending | Select-Object -First 10 | Format-Table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment