Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Import-Mailbox cmdlet is not recognized

Posted on 2010-09-15
23
Medium Priority
?
2,792 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
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

Does Powershell have you tied up in knots?

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

704 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