$ datacolumns = $ datagatherout | Get -Member -MemberType属性| select -object -expandproperty名称 $datacolumns
逆转: PS C:\ Windows \ System32> $DATACOLUMNS
alpha 检查 loan
commands:
$datagatherout
逆转:
检查:1234 loan:测试值 Alpha:4568
$dataGatherOut.psobject.properties | select -ExpandProperty Name
如果您在输出中获得
Length LongLength Rank SyncRoot IsReadOnly IsFixedSize IsSynchronized Count
,则需要此功能:
$dataGatherOut[0].PSObject.Properties | Select -ExpandProperty Name