Tuesday, October 4, 2011

PowerShell Format-List (fl)

Staying with the late to the party theme on my PowerShell adventure, today I discovered Format-List (fl alias).  You can pipe results into it and get more detailed output.

Without Format-List:
PS> [Array]

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Array System.Object
With Format-List:
PS> [Array] | fl

Module : CommonLanguageRuntimeLibrary
Assembly : mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b7
7a5c561934e089
TypeHandle : System.RuntimeTypeHandle
DeclaringMethod :
BaseType : System.Object
UnderlyingSystemType : System.Array
FullName : System.Array
AssemblyQualifiedName : System.Array, mscorlib, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=b77a5c561934e089
Namespace : System
GUID : 200fb91c-815d-39e0-9e07-0e1bdb2ed47b
IsEnum : False
GenericParameterAttributes :
IsSecurityCritical : False
IsSecuritySafeCritical : False
IsSecurityTransparent : True

No comments:

Post a Comment