Skip to content

Instantly share code, notes, and snippets.

@PolarBearGod
Created September 22, 2019 04:23
Show Gist options
  • Save PolarBearGod/24b412f8b9e00a82d8c38ea2eae57703 to your computer and use it in GitHub Desktop.
Save PolarBearGod/24b412f8b9e00a82d8c38ea2eae57703 to your computer and use it in GitHub Desktop.
Finds all files with a given extension and exports the data to a CSV files
get-childitem c:\ -recurse | where {$_.extension -eq .exe} | export-csv -notypeinformation c:\users\admin\desktop\executables.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment