Need better formatting for type System.Management.Automation.ApplicationInfo - by Keith Hill MVP

Status : 


Sign in
to vote
ID 783409 Comments
Status Active Workarounds
Type Suggestion Repros 0
Opened 4/10/2013 4:34:42 PM
Access Restriction Public


The output of Get-Command for exes is pretty much worthless:

PS> gcm mstest

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Application     MSTest.exe

I usually know it is an exe and I certainly know the name.  What I want to know is the path for the exe.  Don't make me go having to look for that when it's the most common thing folks want to know.  And if there's room, the file version is often something folks want to know about an exe.
Sign in to post a comment.
Posted by Roman Kuzmin on 4/12/2013 at 5:01 AM
Agree. In 50% cases I do Get-Command in order to locate an executable or a script. In 100% of these cases I have to run the command twice because at first I always forget to use a trick like "| Format-List" in order to work around the missing Path in the default results.
Posted by Joel 'Jaykul' Bennett on 4/11/2013 at 1:22 PM
This NEEDS to apply for ExternalScript as well.

As a minimum, the 3rd column (which is currently the "ModuleName" column) could be populated with the value of the PATH property for those command types.