PowerShell snippets

powershell

Get file version

Get the file version:

(get-item LutherBackup.exe).VersionInfo.FileVersion

List all VersionInfo attributes:

(get-item LutherBackup.exe).VersionInfo | format-list

Get a list of files

get-childitem -path *.ppt? -Recurse |
    select fullName |
    export-csv powerpoints .csv