相关疑难解决方法(0)

PowerShell:没有标题的格式表

在PowerShell脚本中,我有一些传递给Format-TableCmdLet的对象.
我的脚本输出如下所示:

Something...

Operation AttributeName  AttributeValue
--------- -------------  --------------
Delete    Member         John Doe

Something else...
Run Code Online (Sandbox Code Playgroud)

由于字段的含义非常明显,我想从Format-Table的输出中删除标题,'---'分隔符和开头和结尾的空行.
我不认为CmdLet支持这个(或者至少如果有一个参数来做这个我找不到它).

将Format-Table的输出中只包含实际值的行的最佳方法是什么?

powershell formatting

16
推荐指数
4
解决办法
8万
查看次数

标签 统计

formatting ×1

powershell ×1