How to export data to CSV in PowerShell?

后端 未结 4 1632
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 03:03
foreach ($computer in $computerlist) {
    if((Test-Connection -Cn $computer -BufferSize 16 -Count 1 -ea 0 -quiet))
    {
        foreach ($file in $REMOVE) {
               


        
4条回答
  •  孤城傲影
    2020-12-03 03:34

    what you are searching for is the Export-Csv file.csv

    try using Get-Help Export-Csv to see whats possible

    also Out-File -FilePath "file.csv" will work

提交回复
热议问题