Powershell Recursive Recipient for Com Object

I have the instruction "New-Object -com Indesign.Application.Cs5 | Get-Member" It works as expected for the top level.

How to adjust the entire tree of objects and display the results in a readable / spreadsheet format (if possible).

+3
source share
1 answer

The built-in way to do this is to use Format-Custom like this:

Get-Process -id $pid | Format-Custom -Property * -Depth 4

, , $FormatEnumerationLimit ( - 4). , 100, fc PowerShell, , . (, ), , . BTW :

$FormatEnumerationLimit = 10
gps -id $pid | fc * -dep 10
+3

Source: https://habr.com/ru/post/1745669/


All Articles