Skip to content

Instantly share code, notes, and snippets.

@jymcheong
Created April 3, 2018 01:43
Show Gist options
  • Save jymcheong/6c70d06a883db7ecb06748239e039960 to your computer and use it in GitHub Desktop.
Save jymcheong/6c70d06a883db7ecb06748239e039960 to your computer and use it in GitHub Desktop.
Get All EXEs
$Dir = get-childitem "C:\" -recurse
$List = $Dir | where {$_.extension -eq ".exe"}
$List | Select-Object -ExpandProperty fullname | out-file EXEs.txt
@jymcheong
Copy link
Author

-ExpandProperty is important, otherwise long fullpaths will be truncated with "...".

@jymcheong
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment