Created
April 29, 2012 17:31
-
-
Save AndrewBarfield/2552137 to your computer and use it in GitHub Desktop.
PowerShell: Display file descriptions of all executables in the System32 folder
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
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 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found it myself: forget refelction and just use
System.Diagnostics.FileVersionInfo
could be so simple