Exchange
From pressy's brainbackup
exchange
export a mailbox to pst
[PS] C:\Windows\system32>Get-MailboxStatistics user | ft DisplayName, TotalItemSize, ItemCount DisplayName TotalItemSize ItemCount ----------- ------------- --------- user 10.16 GB (10,904,102,091 bytes) 61733 [PS] C:\Windows\system32>New-MailboxExportRequest -Mailbox user -FilePath \\localhost\f$\MailBU\backupUSER.pst Name Mailbox Status ---- ------- ------ MailboxExport pressy.local/Sales/user Queued [PS] C:\Windows\system32>Set-MailboxExportRequest -Identity "user\MailboxExport" -BadItemLimit 50 WARNING: When an item can't be read from the source location or can't be written to the target location, it will be considered corrupted. By specifying a non-zero BadItemLimit, you're requesting that Exchange not copy such items to the target location. When the request is complete, such corrupted items won't be available at the target. When the source is deleted, these items will be completely lost. [PS] C:\Windows\system32> [PS] C:\Windows\system32>Get-MailboxExportRequest Name Mailbox Status ---- ------- ------ MailboxExport pressy.local/Sales/user InProgress [PS] C:\Windows\system32>get-mailboxexportrequest Name Mailbox Status ---- ------- ------ MailboxExport pressy.local/Sales/user Completed [PS] C:\Windows\system32>Remove-MailboxExportRequest -identity "user\mailboxexport" Confirm Are you sure you want to perform this action? Removing completed request 'pressy.local/Sales/user\MailboxExport'. [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): y [PS] C:\Windows\system32>
see all mailboxes
[PS] C:\Windows\system32>Get-MailboxStatistics -server SERVER| where {$_.ObjectClass -eq "Mailbox"} | Sort-Object TotalItemSize -Descending | ft @{label="User";expression={$_.DisplayName}},@{label="Total Size (MB)";expression={$_.TotalItemSize.Value.ToMB()}},@{label="Items";expression={$_.ItemCount}},@{label="Storage Limit";expression={$_.StorageLimitStatus}} -auto auto User Total Size (MB) Items Storage Limit ---- --------------- ----- ------------- user1 10398 61732 NoChecking user2 7326 62698 NoChecking user3 502 3528 BelowLimit