A very useful command to see the sizes of the folders into a exchange mailbox:
Get-MailboxFolderStatistics [mailbox] | Select Name,FolderSize,ItemsinFolder | Sort-Object -Property FolderSize
This little script if for export mailboxes to a pst files form an Exchange 2010 SP1 or SP2 or SP3
to change:
first, assing role to users administrator
New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator
the script:
</p> 'F:\Exchange\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; Remove-Item <a href="file:///\\murano\F\Exchange\*.pst">\\murano\F\Exchange\*.pst</a> -recurse; Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest -confirm:$false; Get-MailboxExportRequest | where {$_.status -eq "Failed"} | Remove-MailboxExportRequest -confirm:$false; foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $i -FilePath "<a href="file:///\\murano\F\Exchange\$($i.Alias).pst">\\murano\F\Exchange\$($i.Alias).pst</a>" -baditemlimit 200 -AcceptLargeDataLoss }
then, create one new scheduled task:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
with this parameters:
-version 2.0 -command “. ‘F:\Exchange\bin\RemoteExchange.ps1’; Connect-ExchangeServer -auto;. ‘F:\backup\exportmailboxes.ps1′”
{jcomments on}
By continuing to use the site, you agree to the use of cookies. more information
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.