Windows Vista Forums

Retrieve File System Object Descriptions For Executables
  1. #1


    Thomas Lafferty Guest

    Retrieve File System Object Descriptions For Executables

    Hi -

    I'm a relative new comer to PowerShell, so I struggle with things that are
    probably old hat for you folks. What I'm wondering is how can I extract the
    file description from all executables in a directory? Getting the filename
    and porting it to a csv is relatively simple, but doesn't give me all I need
    since many of the filenames are arcane. Here's what I have so far:

    ls "networkpathhere" *.exe | export-csv C:\temp\CSVNamehere.csv

    For security reasons I did not include my network path, but the above works
    just fine for getting standard file system info. However, a filename such as
    ApNe.exe is not nearly as useful as a description such as AP Invoice Entry
    which I can find by right clicking the executable and then clicking
    properties or else by turning on the File description header in Windows
    Explorer.

    Any ideas?



    Thanks in advance!

    Tom

      My System SpecsSystem Spec

  2. #2


    Oisin (x0n) Grehan [MVP] Guest

    Re: Retrieve File System Object Descriptions For Executables

    On Aug 20, 4:12*pm, Thomas Lafferty
    <ThomasLaffe...@xxxxxx> wrote:

    > Hi -
    >
    > I'm a relative new comer to PowerShell, so I struggle with things that are
    > probably old hat for you folks. What I'm wondering is how can I extract the
    > file description from all executables in a directory? Getting the filename
    > and porting it to a csv is relatively simple, but doesn't give me all I need
    > since many of the filenames are arcane. Here's what I have so far:
    >
    > ls "networkpathhere" *.exe | export-csv C:\temp\CSVNamehere.csv
    >
    > For security reasons I did not include my network path, but the above works
    > just fine for getting standard file system info. However, a filename suchas
    > ApNe.exe is not nearly as useful as a description such as AP Invoice Entry
    > which I can find by right clicking the executable and then clicking
    > properties or else by turning on the File description header in Windows
    > Explorer.
    >
    > Any ideas?
    >
    > Thanks in advance!
    >
    > Tom
    Tom, first stop:

    http://www.codeplex.com/powershellcx

    install version 1.1.1 - next stop:

    C:\Users\Oisin
    [24] > dir c:\windows\*.exe | Get-FileVersionInfo | select filename,
    filedescription | ft -auto

    FileName FileDescription
    -------- ---------------
    C:\windows\bfsvc.exe Boot File Servicing Utility
    C:\windows\explorer.exe Windows Explorer
    C:\windows\fveupdate.exe BitLocker Drive Encryption Servicing Utility
    C:\windows\HelpPane.exe Microsoft® Help and Support
    C:\windows\hh.exe Microsoft® HTML Help Executable
    C:\windows\notepad.exe Notepad
    C:\windows\regedit.exe Registry Editor
    C:\windows\RtHDVCpl.exe HD Audio Control Panel
    C:\windows\RtlUpd.exe Driver Update and remove for Windows x64 or
    x86_32
    C:\windows\twunk_16.exe Twain_32.dll Client's 16-Bit Thunking Server
    C:\windows\twunk_32.exe Twain.dll Client's 32-Bit Thunking Server
    C:\windows\winhelp.exe Windows Help Engine application file
    C:\windows\winhlp32.exe Windows Winhlp32 Stub

    Get-FileVersionInfo is one of our new cmdlets in Pscx (powershell
    community extensions).

    Hope this helps,

    - Oisin

    PowerShell MVP
    http://www.nivot.org/

      My System SpecsSystem Spec

Retrieve File System Object Descriptions For Executables problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I compress a folder using the File System Object? Larry VB Script 2 02 Dec 2008
Retrieve Windows System Information. engteng .NET General 2 16 Aug 2008
Compare-Object and Get the name of object/File? akcorr PowerShell 5 19 Jun 2008
Re: Unable to cast COM object of type 'ADODB.RecordsetClass' to class type 'System.Object[]' Michel Posseth [MCP] .NET General 2 27 Mar 2008
How to retrieve system logs? Sharon T Vista General 3 24 May 2007