Improve company productivity with a Business Account.Sign Up

x
?
Solved

Import-Mailbox cmdlet is not recognized

Posted on 2010-09-15
23
Medium Priority
?
2,803 Views
Last Modified: 2012-06-27
Exchange 2010 SP1

I followed dematzer's instructions at...
http://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!!!
0
Comment
Question by:BigBadWolf_000
  • 12
  • 7
  • 3
  • +1
23 Comments
 
LVL 74

Expert Comment

by:Glen Knight
ID: 33686556
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?
0
 
LVL 3

Expert Comment

by:tedoff
ID: 33686561
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.
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686583
I ran the command new-managementrole then restarted the server and tried import-mailbox
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686589
Yes logged in as administrator
In group member is administrator too
0
 
LVL 49

Expert Comment

by:Akhater
ID: 33686607
import-mailbox was removed in exchange 2010 sp1 and replaced by new-mailboximportrequest

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

Expert Comment

by:Glen Knight
ID: 33686610
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?
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686624
Here is what I get when I run get-managementroleassignment
Snap1.jpg
0
 
LVL 49

Expert Comment

by:Akhater
ID: 33686633
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
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686663
no i got it ....just reading up...would this syntax work
New-MailboxImportRequest -Mailbox Ayla -FilePath F:\PST\ayla.pst
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686693
Akhater: Can you help me identify the prerequsites.....does this mean Outlook 2010x64 is not required
 
0
 
LVL 49

Expert Comment

by:Akhater
ID: 33686705
yep you don't need outlook anymore for the New-MailboxImportRequest
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686745
do I still need the new-management roles that I created....
0
 
LVL 49

Accepted Solution

by:
Akhater earned 2000 total points
ID: 33686764
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686823
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”
0
 
LVL 74

Expert Comment

by:Glen Knight
ID: 33686827
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)
0
 
LVL 49

Expert Comment

by:Akhater
ID: 33686840
I am sorry but what do you want to remove ?
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33686963
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?
0
 
LVL 49

Expert Comment

by:Akhater
ID: 33686977
we need to know why it failed check the report or paste the get-mailboximportrequest | fl
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33687072
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
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33687079
I will run a pst repair and try again
0
 
LVL 49

Expert Comment

by:Akhater
ID: 33687099
well it proves all is working well :)

just add -BadItemLimit  10 (for example) or unlimited
0
 
LVL 14

Author Comment

by:BigBadWolf_000
ID: 33687401
Fixing the PST did it
0
 
LVL 14

Author Closing Comment

by:BigBadWolf_000
ID: 33687404
Akhater: Thank you very much!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Are you working to mount the dismounted Exchange 2013 database? Then the best course of action is to analyze the causes of Database issue, their probable solutions and decide for the appropriate course of action.
This is a very interesting topic. Ransomware has been around for a while but has increased drastically over the last year or so.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …

595 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question