3 ms·
Pipe anything to Get-Member. For example: (ls)[0] | gm will list every field and its type on a File object. Wicked easy.
by noveltyaccount 10y ago
Pipe anything to Get-Member. For example:
(ls)[0] | gm
will list every field and its type on a File object. Wicked easy.
- ygra 10y agoYou can even just do ls|gm and get the lists for both FileInfo and DirectoryInfo. There will be no duplicate types listed because Get-Member already sees to that there won't.
- deleted 10y ago[deleted]