Skip to content
M365 Journey edited this page Oct 2, 2024 · 1 revision

Welcome to the Email-Size-Analysis-Filter-Script wiki!

To customize the paths where the CSV files will be saved, replace "YourPath" with the desired directory path in the following lines of the script:

Export internal emails

$internalEmails | Export-Csv -Path "YourPath\internal-emails.csv" -NoTypeInformation

Export emails sent externally

$externalEmailsSent | Export-Csv -Path "YourPath\external-emails-sent.csv" -NoTypeInformation

Export emails received from external sources

$externalEmailsReceived | Export-Csv -Path "YourPath\external-emails-received.csv" -NoTypeInformation

By customizing the paths, you can ensure that the CSV files are saved in the appropriate directory for your needs.

I recommand to use a text editor like Notepad++ or Visual Studio Code.

Clone this wiki locally