Solved

Exchange 2007 command shell "move-mailbox" parameters

Posted on 2009-05-06
6
898 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…
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…

912 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

23 Experts available now in Live!

Get 1:1 Help Now