PowerShell – Return File Names and File Versions

email me

get-childitem * -include *.* | foreach-object { "{0}`t{1}" -f $_.FullName, [System.Diagnostics.F
ileVersionInfo]::GetVersionInfo($_).FileVersion } | out-file output.txt

notepad.exe output.txt

 

Output