Explore Objects

by Mar 9, 2017

In PowerShell, anything is represented by objects, and here is a helpful one-liner that examines any object and copies its members as text into your clipboard.

"Hello" | 
  Get-Member |
  Format-Table -AutoSize -Wrap |
  Out-String -Width 150 |

Simply replace “Hello” with any variable or command, and see what is copied to your clipboard. You can then paste the information to the text editor or word processor of choice and print it or convert it to PDF for future reference.

Twitter This Tip! ReTweet this Tip!