Skip to content

Instantly share code, notes, and snippets.

@AndrewBarfield
Created April 29, 2012 17:31
Show Gist options
  • Save AndrewBarfield/2552137 to your computer and use it in GitHub Desktop.
Save AndrewBarfield/2552137 to your computer and use it in GitHub Desktop.
PowerShell: Display file descriptions of all executables in the System32 folder
cls
# Change the current directory to the System folder
cd C:\Windows\System32\
# Display all executable files along with their file description
get-childitem * -include *.exe | foreach-object {
"{0}, {1}" -f $_.Name,
[System.Diagnostics.FileVersionInfo]::GetVersionInfo($_).FileDescription }
@illuminatux
Copy link

found it myself: forget refelction and just use System.Diagnostics.FileVersionInfo
could be so simple

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