Solved

Exchange 2007 command shell "move-mailbox" parameters

Posted on 2009-05-06
6
896 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

 
LVL 2

Author Comment

by:somoteitbe
Comment Utility
I'm on it. Thanks alvin.
0
 
LVL 2

Author Closing Comment

by:somoteitbe
Comment Utility
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
Comment Utility
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

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

Resolve DNS query failed errors for Exchange
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
In this video we show how to create a mailbox database 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 Servers >> Data…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now