export to pst in exchange 2007

I need CMD for exporting all mailboxes to pst in certain DB in exchange 2007 services pack2
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Edward van BiljonMessaging and Collaboration Technical Lead (Exchange MVP)Commented:
AlkannetworksAuthor Commented:
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)Commented:
Try putting the folder path in inverted commas "E:\" etc. did you grant rights on the share for exchange to access?
CEOs need to know what they should worry about

Nearly every week during the past few years has featured a headline about the latest data breach, malware attack, ransomware demand, or unrecoverable corporate data loss. Those stories are frequently followed by news that the CEOs at those companies were forced to resign.

MASEE Solution Guide - Technical Dept HeadCommented:
Pete LongTechnical ConsultantCommented:
SysToolsData Expert - Recovery,Backup,MigrationCommented:
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:

AlkannetworksAuthor Commented:
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 } }
AlkannetworksAuthor Commented:
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 SupportCommented:
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,

AlkannetworksAuthor Commented:
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
AlkannetworksAuthor Commented:
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 SupportCommented:
ОК , 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 HeadCommented:
-->Dear MAS
I have done what u adise but get the error message

Looks like you are using a user doesnt have management access
AlkannetworksAuthor Commented:
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 HeadCommented:
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 ConsultantCommented:
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
AlkannetworksAuthor Commented:
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"
AlkannetworksAuthor Commented:
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.
austin minorCommented:
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/
AlkannetworksAuthor Commented:
i will upgrade to last exchange version

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.