Link to home
Create AccountLog in
Avatar of Alkannetworks
AlkannetworksFlag for Egypt

asked on

export to pst in exchange 2007

I need CMD for exporting all mailboxes to pst in certain DB in exchange 2007 services pack2
Avatar of Edward van Biljon (MVP)
Edward van Biljon (MVP)
Flag of United States of America image

Avatar of Alkannetworks


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
Try putting the folder path in inverted commas "E:\" etc. did you grant rights on the share for exchange to access?
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
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 -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 -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...
ОК , 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.
-->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
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
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:
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.
Avatar of austin minor
austin minor

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.


Export Exchange mailboxes to PST file using Powershell cmdlet:
Avatar of Alkannetworks
Flag of Egypt image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account