Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - ExMerge and PowerShell with Exchange Management Shell cmdlets

Reply
 
Old 07-28-2009   #1 (permalink)
systinte5


 
 

ExMerge and PowerShell with Exchange Management Shell cmdlets

I am moving mail from an exch 2003 organization in forest A to an exch 2007
organization in forest B. In Forest A I am using ExMerge to export to a PST
file successfully since it is an exch 2003 organization. I am bringing this
PST file over to forest B and attempting following PowerShell EMS command to
import the PST. The error returned is also in the following transcript:
----------
[PS] C:\Documents and Settings\tester>Import-Mailbox -Identity "CN=testuser,
OU=Users,OU=SameOU,DC=nae,DC=local" -Confirm:$False -Verbose:$True
-Debug:$True -PSTFolderPath "C:\Temp\testuser\testuser.pst" -ReportFile
"C:\Temp\testuser\testuser.xml"
VERBOSE: Import-Mailbox : Beginning processing.
VERBOSE: Import-Mailbox : Trying to open registry key
'Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\OUTLOOK.EXE'.
VERBOSE: Import-Mailbox : The default value of the registry key is
'C:\PROGRA~1\MICROS~2\OFFICE11\OUTLOOK.EXE'.
VERBOSE: Import-Mailbox : The version of Outlook.exe is '11.0.8217'.
VERBOSE: Import-Mailbox : Searching objects
"nae.local/SameOU/Users/testuser" of type "ADUser" under the root
"$null".
VERBOSE: Import-Mailbox : Previous operation run on global catalog server
'DSDC01'.
VERBOSE: Import-Mailbox : Processing object
"nae.local/SameOU/Users/testuser".
VERBOSE: Import-Mailbox : Searching objects "naeex2k7" of type "Server" under
the root "$null".
VERBOSE: Import-Mailbox : Previous operation run on domain controller
'DSDC01.nae.local'.
VERBOSE: Import-Mailbox : Searching objects "NAEEX2K7\First Storage
Group\Mailbox Database" of type "MailboxDatabase" under the root "$null".
VERBOSE: Import-Mailbox : Previous operation run on domain controller
'DSDC01.nae.local'.
VERBOSE: Importing mailbox content from .pst file
'C:\Temp\testuser\testuser.pst' to mailbox 'testuser'. This
operation may take a long time to complete.
VERBOSE: Import-Mailbox : Ending processing.
VERBOSE: Import-Mailbox : [testuser] The operation has started.
VERBOSE: Import-Mailbox : [testuser] Initializing MAPI, loading library.
VERBOSE: Import-Mailbox : [testuser] Approving object.
VERBOSE: Import-Mailbox : [testuser] Logging on to the MAPI profile.
VERBOSE: Import-Mailbox : [testuser] Opening Exchange mailbox.
VERBOSE: Import-Mailbox : [testuser] Opening PST file.
VERBOSE: Import-Mailbox : [testuser] The operation has finished.
VERBOSE: Import-Mailbox : [testuser] The operation has started.
VERBOSE: Import-Mailbox : [testuser] Initializing MAPI, loading library.
VERBOSE: Import-Mailbox : [testuser] Approving object.
VERBOSE: Import-Mailbox : [testuser] Logging on to the MAPI profile.
VERBOSE: Import-Mailbox : [testuser] Opening Exchange mailbox.
VERBOSE: Import-Mailbox : [testuser] Opening PST file.
VERBOSE: Import-Mailbox : [testuser] Moving messages.
VERBOSE: Import-Mailbox : [testuser] Merging messages.

Confirm
Error was found for testuser (testuser@xxxxxx) because: Error
occurred in the step: Moving messages. Failed to copy messages to the
destination mailbox store with error:
MAPI or an unspecified service provider.
ID no: 00000000-0000-00000000, error code: -1056749164
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help
(default is "Y"):h
Import-Mailbox : Command execution stopped because the user selected the
Halt o
ption.
---------
Any ideas? Does this imply PST files generated by ExMerge are not compatible
with the EMS? And vice versa?

Thanks in advance.

My System SpecsSystem Spec
Old 07-29-2009   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: ExMerge and PowerShell with Exchange Management Shell cmdlets

I don't think it is an issue of PST compatibility, but it would be some
other problem. I did a quick search on the error and couldn't find
anything.

I'd suggest also asking this in a Exchange 2007 forum.

Marco
Quote:

> Any ideas? Does this imply PST files generated by ExMerge are not
> compatible
> with the EMS? And vice versa?
>
> Thanks in advance.
My System SpecsSystem Spec
Old 07-29-2009   #3 (permalink)
systinte5


 
 

Re: ExMerge and PowerShell with Exchange Management Shell cmdlets

Thanks Marco. I have posted on the Exchange All Versions->Exchange
Development forum since there wasn't a specific 2007 forum here. There is a
specific 2003 forum, but not 2007. So, if you would please point the correct
forum, I will post there as well. Any way, here is an update: Perhaps this
could be the cause?
When I attempted to install the exchange 2007 Tools (only tools that bring
in the EMS cmdlets under custom install option, not the entire exch 2007
server SP1) on an XP box with outlook and PowerShell in the forest with the
exchange 2003 organization, it complained that the active directory domain is
in mixed mode and that to install the EMS 32 bit tools the domain functional
level must be raised to Windows 2000 native mode or above. Could this be the
reason the PST file successfully exported from this 2003 org is somehow
incompatible with the exch 2007 import-mailbox cmdlet? I know you said it has
nothing to do with PST file compatibility....... Thanks again.

"Marco Shaw [MVP]" wrote:
Quote:

> I don't think it is an issue of PST compatibility, but it would be some
> other problem. I did a quick search on the error and couldn't find
> anything.
>
> I'd suggest also asking this in a Exchange 2007 forum.
>
> Marco
>
Quote:

> > Any ideas? Does this imply PST files generated by ExMerge are not
> > compatible
> > with the EMS? And vice versa?
> >
> > Thanks in advance.
>
>
My System SpecsSystem Spec
Old 07-29-2009   #4 (permalink)
Marco Shaw [MVP]


 
 

Re: ExMerge and PowerShell with Exchange Management Shell cmdlets

Try the "Admin" forum here maybe:
http://social.technet.microsoft.com/...xchangeserver/

"systinte5" <systinte5@xxxxxx> wrote in message
news:92F9986D-EF2D-4D89-88A3-76849EFA8527@xxxxxx
Quote:

> Thanks Marco. I have posted on the Exchange All Versions->Exchange
> Development forum since there wasn't a specific 2007 forum here. There is
> a
> specific 2003 forum, but not 2007. So, if you would please point the
> correct
> forum, I will post there as well. Any way, here is an update: Perhaps this
> could be the cause?

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Using Exchange Management Shell through Powershell on other PC? PowerShell
using Exchange Management Shell in c# PowerShell
Exchange management shell PowerShell
Question about Exchange Management Console and Exchange cmdlets PowerShell
Just a FYI: Power Shell CMDlets for Quest ActiveRoles (AD management suite) PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46