Solved

Exchange 2007 command shell "move-mailbox" parameters

Posted on 2009-05-06
6
903 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
[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
  • 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
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…

737 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