更新时间:2023-11-29 10:38:46
您需要将它们保存到文件中,而不是使用 Out-GridView
来显示结果。您可以使用 Export-Csv
这样轻松地以CSV格式完成操作。
Instead of using Out-GridView
to display the results, you need to save them to a file. You can do that easily in the CSV format by using Export-Csv
like this.
Export-Csv '.\DisabledEmployees.csv' -NoTypeInformation
只需用该行替换管道末尾的 Out-GridView
行。
To be clear, just replace the Out-GridView
line at the end of the pipeline with this line.