We help IT Professionals succeed at work.

Import-Mailbox cmdlet is not recognized

BigBadWolf_000
on
2,869 Views
Last Modified: 2012-06-27
Exchange 2010 SP1

I followed dematzer's instructions at...
https://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/A_2709-Importing-PST-files-in-to-Exchange-2010.html?sfQueryTermInfo=1+10+2010+30+exchang+file+import+pst

I have installed only Outlook 2010 x64 (plus the tools and shared comps)

I have both a security group and administrator added to role assignments and verified using get-managementroleassignment

Outlook and Exchange on same box single server setup

But still no import-mailbox ..........HELP!!!
Comment
Watch Question

CERTIFIED EXPERT
Author of the Year 2010
Top Expert 2010

Commented:
This would normally indicate that the management role assignment isn't working.
Are you logged in using the "Administrator" user account?

How long is it since you ran the command?

Commented:
After creating the proper role assignment you'll need to make sure you log out and log back in to Exchange Management Shell.  If you haven't done that try that first.

Author

Commented:
I ran the command new-managementrole then restarted the server and tried import-mailbox

Author

Commented:
Yes logged in as administrator
In group member is administrator too
AkhaterSolutions Architect
CERTIFIED EXPERT

Commented:
import-mailbox was removed in exchange 2010 sp1 and replaced by new-mailboximportrequest

http://technet.microsoft.com/en-us/library/ff607310.aspx
CERTIFIED EXPERT
Author of the Year 2010
Top Expert 2010

Commented:
BigBadWolf, I can only appologis, I have missed a whole section out of my article.  or it's at least a little ambiguous.

You have created the Management Role but have you added the users to the group you have assigned that role to?

Did you create a new group or use an existing one?

Author

Commented:
Here is what I get when I run get-managementroleassignment
Snap1.jpg
AkhaterSolutions Architect
CERTIFIED EXPERT

Commented:
BigBadWolf just in case you missed my previous post

import-mailbox was removed in exchange 2010 sp1 and replaced by new-mailboximportrequest

http://technet.microsoft.com/en-us/library/ff607310.aspx

Author

Commented:
no i got it ....just reading up...would this syntax work
New-MailboxImportRequest -Mailbox Ayla -FilePath F:\PST\ayla.pst

Author

Commented:
Akhater: Can you help me identify the prerequsites.....does this mean Outlook 2010x64 is not required
 
AkhaterSolutions Architect
CERTIFIED EXPERT

Commented:
yep you don't need outlook anymore for the New-MailboxImportRequest

Author

Commented:
do I still need the new-management roles that I created....
Solutions Architect
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
How do I remove this...I earlier created using othe instructions...Note: I do not wat to delete the Mailbox Import Export role but just the assigment (as created below)


New-ManagementRoleAssignment –Name “MailboxImportExport” –SecurityGroup “Mailbox-IER" –Role “Mailbox Import Export”
CERTIFIED EXPERT
Author of the Year 2010
Top Expert 2010

Commented:
Yes the management role is still required.

It's just a different command, the syntax is almost identical

(looks like I need to update my article)
AkhaterSolutions Architect
CERTIFIED EXPERT

Commented:
I am sorry but what do you want to remove ?

Author

Commented:
Thanks i will leave the role assignments as they are...
Ok i ran the command new-mailboximportrequest...it accepted the syntax and went to queued status.

But after a few minutes I ran the get-mailboximportrequest and it shows as failed.

What should I do next?
AkhaterSolutions Architect
CERTIFIED EXPERT

Commented:
we need to know why it failed check the report or paste the get-mailboximportrequest | fl

Author

Commented:
Yeah did the get-mailboximportrequeststatistics.....see attached
see results below...note: the pst was created in outlook2003 and then migrated to oitlook 2010 (no issues at the time) client  no exc server.
test.txt

Author

Commented:
I will run a pst repair and try again
AkhaterSolutions Architect
CERTIFIED EXPERT

Commented:
well it proves all is working well :)

just add -BadItemLimit  10 (for example) or unlimited

Author

Commented:
Fixing the PST did it

Author

Commented:
Akhater: Thank you very much!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.