Solved

Exchange 2007 command shell "move-mailbox" parameters

Posted on 2009-05-06
6
899 Views
Last Modified: 2012-05-06
I am using Exchange 2007 command shell for the first time because I need to circumvent a "baditemlimit" issue with moving a few mailboxes from the GUI.  Command shell rocks when it comes to granular Exchange needs; I just have two questions:

1. What is the metric used for <RetryInterval> and <RetryTimeout>? (I'm assuming seconds)
2. Is there a parameter I can use for setting a delay for the move? (i.e: I want to move it, but not until later tonight when the user is out of the mailbox)

I have been looking through Technet and other forums with no luck .  Heres the most useful URL I've found (which is basically 'get-help -full')
http://technet.microsoft.com/en-us/library/aa997599.aspx

Here's the code I'm attempting assuming seconds for timeout metric and allowing for up to 1000 bad items to skip:

Move-Mailbox -Identity 'user@company.com' -TargetDatabase 'server\storage_group\database' [-BadItemLimit 1000] [-DomainController 'domain_controller'] [-GlobalCatalog 'gc_server'] [-RetryTimeout 28800] [-RetryInterval 30]  

Now, Im just missing a parameter for delaying it until evening hours so I can have the move occur while I'm at my son's t-ball game. :)

Some help?
0
Comment
Question by:somoteitbe
  • 4
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
-alvin- earned 500 total points
ID: 24320291
i don't think there's an option via command line to schedule it.  i would script it and run it via scheduled tasks.  have fun at the t-ball game.
0
 
LVL 2

Author Comment

by:somoteitbe
ID: 24320733
Okay, thanks! that's good to know.  How about question 1 then?  Was I right about the "minutes"?
0
 
LVL 3

Assisted Solution

by:-alvin-
-alvin- earned 500 total points
ID: 24321144
not entirely sure, but from what i can google the RetryTimeout and the RetryInterval both use Microsoft.Exchange.Data.EnhancedTimeSpan which equates to dd.hh:mm:ss.  try searching for EnhancedTimeSpan.  good luck.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 2

Author Comment

by:somoteitbe
ID: 24321159
I'm on it. Thanks alvin.
0
 
LVL 2

Author Closing Comment

by:somoteitbe
ID: 31578665
Good call on the scripting and scheduled task.  This will work nicely.  As far as the Retrytimeout and RetryInterval parameters, I went with the defaults and left these options out.  Thanks for the guidance.
0
 
LVL 2

Author Comment

by:somoteitbe
ID: 24323135
Thanks alvin; the scripting idea will work nicely.  The RetryTimeout and RetryInterval metrics: I left them to default.  It looks like I was messing with stuff that was unecessary, but after further research as you suggested - looks like you are right.  good call(s).
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
This video discusses moving either the default database or any database to a new volume.

825 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