We help IT Professionals succeed at work.
Get Started

How do i suppress move-mailbox command confirmation?

trnsfrmrsr
trnsfrmrsr asked
on
5,440 Views
Last Modified: 2008-03-28
I'm trying to script mailbox moves in exchange 2007, however, for some reason, I cannot get the confirmation assocaited with the move mailbox to suppress.

I've tried the following:
Get-journalRule | Disable-JournalRule -confirm:$false, yet the confirmation persists.

The message i'm refereing to is:

cmdlet move-mailbox at command pipeline position 1
Supply values for the following parameters:
TargetDatabase: test1db

Confirm
Are you sure you want to perform this action?
Moving mailbox: Random Person (RandomPerson@test.net) to database:
TEST\test1\test1db. The operation can take a long time and the mailbox will
be inaccessible until the move is completed.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):

Is there any way to suppress this prompt so i can use the move-mailbox cmdlet in a script to move a large number of mailboxes?
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE