Export csv
1 TopicExporting Results To .CSV File
Forgive me if this is obvious but I am still fairly new to Powershell and have tried alot but not found a reason for why this is not working. I have the below script that works find but when I try to pipe an "Export-csv" the result is a blank excel sheet. So my question is how can I use the script and export the results to .CSV? $users = get-content "c:\temp\islands with notify.txt" foreach ($user in $users){ Get-CSonlineuser -identity $user | select-object userprincipalname,TeamsUpgradePolicy | export-csv c:\temp\Teamsupgradepolicy.csv } Thanks in advance!Solved7.5KViews0likes1Comment