Created
April 3, 2018 01:43
-
-
Save jymcheong/6c70d06a883db7ecb06748239e039960 to your computer and use it in GitHub Desktop.
Get All EXEs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Dir = get-childitem "C:\" -recurse | |
$List = $Dir | where {$_.extension -eq ".exe"} | |
$List | Select-Object -ExpandProperty fullname | out-file EXEs.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-ExpandProperty is important, otherwise long fullpaths will be truncated with "...".