October 8th, 2014

PowerTip: Use PowerShell to Find Information about Object Properties

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to find information about object properties.

Hey, Scripting Guy! Question How can I use Windows PowerShell to look at information about the properties of an object stored in a variable?

Hey, Scripting Guy! Answer Use the PSObject property, and look at the Properties collection, for example:

$a = @{}

$a.psobject.properties

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback