在PowerShell脚本中,我有一些传递给Format-TableCmdLet的对象.
我的脚本输出如下所示:
Something...
Operation AttributeName AttributeValue
--------- ------------- --------------
Delete Member John Doe
Something else...
Run Code Online (Sandbox Code Playgroud)
由于字段的含义非常明显,我想从Format-Table的输出中删除标题,'---'分隔符和开头和结尾的空行.
我不认为CmdLet支持这个(或者至少如果有一个参数来做这个我找不到它).
将Format-Table的输出中只包含实际值的行的最佳方法是什么?