Another script from the Quick-and-Dirty series:
The following script can be used to quickly write the mailboxes and the limits at mailbox level to a CSV file:
„Name;IssueWarningQuota;SendQuota;SendReceiveQuota;Groesse“ | add-content „postfaecher.csv“
$mbxlist = get-mailbox
foreach ($mbx in $mbxlist)
{
$size = Get-MailboxStatistics $mbx | ForEach-Object {$_.TotalItemSize} | ForEach-Object {$_.Value}
$name = $mbx.Name
$IW = $mbx.IssueWarningQuota
$SQ = $mbx.ProhibitSendQuota
$SRQ = $mbx.ProhibitSendReceiveQuota
„$name;$IW;$SQ;$SRQ;$size“ | add-content „postfaecher.csv“
}
Das Script erstellt eine CSV-Datei mit dem Namen „Postfaecher.csv“ und speichert darin die Limits (Name, Warnlevel, Sendelimit, Sende- und Empfangslimit, Postfachgröße).