Link to home
Start Free TrialLog in
Avatar of Alkannetworks
AlkannetworksFlag for Egypt

asked on

export to pst in exchange 2007

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

Avatar of Alkannetworks

ASKER

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
r'.
At line:1 char:15
+ Export-Mailbox  <<<< -Identity ibrahim.nakip -PSTFolderPath E:\New Folder -Co
nfirm:$false
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:

https://www.experts-exchange.com/articles/32536/File-Failed-Error-In-Exporting-Exchange-Mailbox-to-PST-Format.html
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
grationLogs\export-Mailbox20180831-121300-8593750.log'.
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,

Pavel
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
led.
At line:1 char:1
+ E <<<< xport-Mailbox -Identity tshahin@eim-eg.com -PSTFolderPath E:\pst\tshah
in.pst
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
-ExchangeServer)
>> {
>> 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
"SIT\administrator".

Identity             User                 Deny  Inherited Rights
--------             ----                 ----  --------- ------
MSXSVR7              SIT\administrator    False False     ms-Exch-EPI-Impers...
ОК , So zou can check this:

https://social.technet.microsoft.com/Forums/exchange/en-US/69f1745d-dec7-495d-9c79-39ef7d20bee8/e2k7-exportmailbox-need-32-bit-client-you-have-to-be-kidding?forum=exchangesvradminlegacy

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
https://toyinogunmefun.wordpress.com/2014/12/12/exporting-mailboxes-to-psts-on-exchange-2007-or-above/
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
Hi MAS
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 \\192.168.51.51\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.
51\pst\ibrahim.nakip.pst
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.

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/
ASKER CERTIFIED SOLUTION
Avatar of Alkannetworks
Alkannetworks
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial