July 2017
Intermediate to advanced
648 pages
31h 9m
English
Let's create a script that will export all of the mailboxes in your organization to individual PST files stored in a central location. Create a new file called Export.ps1 and save it in the C: drive. Using a text editor, open the file and add the following code, and then save the file:
param($Path, $BatchName)ForEach ($mbx in Get-Mailbox -ResultSize Unlimited) { $filepath = Join-Path -Path $Path -ChildPath "$($mbx.alias).pst" New-MailboxExportRequest -Mailbox $mbx -FilePath $filepath ` -BatchName $BatchName}
This script provides a couple of parameters used to control the behavior of the mailbox export requests. First, the -Path parameter will allow us to specify a UNC share for our exported mailboxes. Secondly, ...
Read now
Unlock full access