export to pst in exchange 2007

Alkannetworks used Ask the Experts™
I need CMD for exporting all mailboxes to pst in certain DB in exchange 2007 services pack2
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®


i have got the belwo error
[PS] C:\Documents and Settings\Administrator.SIT>Export-Mailbox -Identity ibrahi
m.nakip -PSTFolderPath E:\New Folder -Confirm:$false

Export-Mailbox : A parameter cannot be found that matches parameter name 'Folde
At line:1 char:15
+ Export-Mailbox  <<<< -Identity ibrahim.nakip -PSTFolderPath E:\New Folder -Co
Edward van BiljonMessaging and Collaboration Technical Lead (Exchange MVP & MCT)

Try putting the folder path in inverted commas "E:\" etc. did you grant rights on the share for exchange to access?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Pete LongTechnical Consultant

SysToolsData Expert - Recovery,Backup,Migration

Hey if you still getting an error while export multiple mailboxes via Powershell command the Then you can try SysTools Exchange Export Tool that supports Exchange 2007, 2010, 2013 and latest version and allow you to directly convert Live Exchange Environment to PST Format. Check Out the steps you need to follow when you are not able to export multiple PST File and still getting the error:



Dear MAS
I have done what u adise but get the error message
[PS] C:\WINDOWS>foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbo
x $i -FilePath "\\ E:\New Folder \$($i.Alias).pst" -baditemlimit 50 -acceptlarge
dataloss ;while ((Get-MailboxExportRequest -mailbox $i | ? {$_.Status -eq "Queue
d" -or $_.Status -eq "InProgress"})) { sleep 180 } }
Get-Mailbox : An Active Directory error 0x8000FFFF occurred while searching for
 domain controllers in domain sit.local: Logon failure: unknown user name or ba
d password.
At line:1 char:28
+ foreach ($i in (Get-Mailbox) <<<< ) { New-MailboxExportRequest -Mailbox $i -F
ilePath "\\ E:\New Folder \$($i.Alias).pst" -baditemlimit 50 -acceptlargedatalo
ss ;while ((Get-MailboxExportRequest -mailbox $i | ? {$_.Status -eq "Queued" -o
r $_.Status -eq "InProgress"})) { sleep 180 } }


dear pete
i have done what is in your article but it also gives me the below
[PS] C:\WINDOWS>Export-Mailbox -Identity Administrator -PSTFolderpath E:\pst
Cannot open the log file 'C:\Program Files\Microsoft\Exchange Server\Logging\Mi
At line:1 char:1
+ E <<<< xport-Mailbox -Identity Administrator -PSTFolderpath E:\pst
Pavel MarinovCommercial Technical Support

Hi Alkannetworks,

DId you run the EMS as Admin, and  Please check if the Folder location exists. If not create it. Also you can check if you have the permissions to export,



hello pavel
i have rub the command and belwo what i have got
[PS] C:\Documents and Settings\Administrator.SIT>Export-Mailbox -Identity tshahi
n@eim-eg.com -PSTFolderPath E:\pst\tshahin.pst
You are running on a 64-bit computer. To export to or import from a .pst file,
you must be running a 32-bit computer that has Outlook 2003 SP2 or later instal
At line:1 char:1
+ E <<<< xport-Mailbox -Identity tshahin@eim-eg.com -PSTFolderPath E:\pst\tshah


also i have run the command to make sure that administrator user have prober privilges to export mailboxes to pst

[PS] C:\Documents and Settings\Administrator.SIT>foreach ($exchangeServer in Get
>> {
>> if ($exchangeServer.ServerRole -match 'ClientAccess')
>> {
>> Add-ADPermission -Identity $exchangeServer.DistinguishedName -User 'sit\admin
istrator' -ExtendedRights ms-Exch-EPI-Impersonation
>> }
>> }
WARNING: Appropriate ACE is already present on object
"CN=MSXSVR7,CN=Servers,CN=Exchange Administrative Group
(FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Sit,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=sit,DC=local" for account

Identity             User                 Deny  Inherited Rights
--------             ----                 ----  --------- ------
MSXSVR7              SIT\administrator    False False     ms-Exch-EPI-Impers...
Pavel MarinovCommercial Technical Support

ОК , So zou can check this:


I think you will find it useful.
Basically you will need to run it from a computer where Outlook 32 bit is installed, as it uses the interface.
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

-->Dear MAS
I have done what u adise but get the error message

Looks like you are using a user doesnt have management access


thanks , but i am already give all required access to administrator account which i used it in exporting to PST , would u please clarify what all permission needs
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

To perform an import or an export, you need specific rights. If this is the first time you have attempted to import or export a mailbox, you must assign yourself the “Mailbox Import Export management” RBAC role. Here is how you can do this easily, with scale for the next guy.

1. Launch Active Directory Users and Computers, and create a new security group called “Mailbox Import-Export”.
2. Add your user account, and any others who need to perform this task, to the group.
3. Launch the Exchange Management Shell. Run the following command, changing the name of the Security Group as appropriate.

New-ManagementRoleAssignment -Name “MailboxImportExport” -SecurityGroup “Mailbox Import-Export” -Role “Mailbox Import Export”

If you get an error, check your spelling for the role and the security group

Now, log off and then back on so your new group membership is associated with your account so you have the rights to perform imports and exports.

Please check this article for details
Marshal HubsEmail Consultant

For exporting all mailboxes to pst in certain DB in exchange 2007, you can use Stellar EDB to PST Converter. The software supports all version of Exchange Server and also exports Public folders to PST. For free trial version, you can check this link: https://www.stellarinfo.com/email-repair/edb-pst-converter.php


Thanks , i have run the command and check the spelling but it gives me the below:
[PS] C:\WINDOWS>New-ManagementRoleAssignment -Name "Mailbox Import Export" -Securi
tyGroup "Mailbox Import-Export" -Role "Mailbox Import Export"
The term 'New-ManagementRoleAssignment' is not recognized as a cmdlet, function
, operable program, or script file. Verify the term and try again.
At line:1 char:29
+ New-ManagementRoleAssignment  <<<< -Name "MailboxImportExport" -SecurityGroup
 "Mailbox Import-Export" -Role "Mailbox Import Export"


i have done all these steps but also give me the below message
[PS] C:\Documents and Settings\Administrator.SIT>New-MailboxExportRequest -Mailb
ox ibrahim.nakip -FilePath \\\pst\ibrahim.nakip.pst
The term 'New-MailboxExportRequest' is not recognized as a cmdlet, function, op
erable program, or script file. Verify the term and try again.
At line:1 char:25
+ New-MailboxExportRequest  <<<< -Mailbox ibrahim.nakip -FilePath \\192.168.51.
The cause is that roles are loaded when the Management Shell is loaded - if the rights didn't already exist they will not be loaded and you will receive the error that the cmdlet is not recognized. Once you exit out and restart the exchange management shell the command should be recognized

I suggest you follow this document use New-MailboxExportRequest to export the mailbox, then check whether this issue will occur or not.

New-MailboxExportRequest https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/New-MailboxExportRequest?view=exchange-ps

Export Exchange mailboxes to PST file using Powershell cmdlet: http://expert-advice.org/exchange-server/export-exchange-mailboxes-pst-file-using-powershell-cmdlet/
i will upgrade to last exchange version

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial