Hi,
[PS] C:\Scripts\demo>Get-Help .\Get-MailboxReport.ps1
NAME
C:\Scripts\demo\Get-MailboxReport.ps1
SYNOPSIS
Get-MailboxReport.ps1 - Mailbox report generation script.
SYNTAX
C:\Scripts\demo\Get-MailboxReport.ps1 [-database ] []
C:\Scripts\demo\Get-MailboxReport.ps1 [-file ] []
C:\Scripts\demo\Get-MailboxReport.ps1 [-server ] []
C:\Scripts\demo\Get-MailboxReport.ps1 [-mailbox ] []
C:\Scripts\demo\Get-MailboxReport.ps1 [-all] []
DESCRIPTION
Generates a report of useful information for
the specified server, database, mailbox or list of mailboxes.
Use only one parameter at a time depending on the scope of
your mailbox report.
REMARKS
To see the examples, type: "get-help C:\Scripts\demo\Get-MailboxReport.ps1 -examples".
For more information, type: "get-help C:\Scripts\demo\Get-MailboxReport.ps1 -detailed".
For technical information, type: "get-help C:\Scripts\demo\Get-MailboxReport.ps1 -full".
Depending on which parameter you use the output will vary.
- If you use the -mailbox parameter to query a single mailbox, then the output will appear in the console window. I don't really see the need to output a single mailbox's details to a CSV file.
- If you use any of the other parameters, -server, -database, -file, or -all, the output will be written to a CSV file in the same folder you're running the script from.
- You can use the optional -filename parameter to specify your own output file name
Once you've generated the CSV report you can open it with Excel and begin to analyze the data.
Cheers
Max