PowerTip: Use PowerShell to view properties and their values for a .NET Framework class

Doctor Scripto

Dr Scripto

Summary: Learn how to view properties and the associated values of those properties of .NET Framework classes with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to view the properties and their values from a .NET Framework class,
           such as System.String?

Hey, Scripting Guy! Answer Use the Type accelerator [string], pipe the output to the Format-List cmdlet, and use an asterisk to
           select all properties:

[string] | fl *

Note: fl is an alias for Format-List.

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment