force confirmation when executing command to convert user mailbox to linked mailbox
Hi All,
I'm executing this command:
Connect-Mailbox -Identity user01 -Database db1 -LinkedDomainController dc.contoso.com -LinkedMasterAccount
fonafetest01@contoso.com -LinkedCredential $cre
When the command finishs I have a question about a confirmation, so I have to type A for all
I also tried
Connect-Mailbox -Identity user01 -Database db1 -LinkedDomainController dc.contoso.com -LinkedMasterAccount
fonafetest01@contoso.com -LinkedCredential $cre -Confirm
Connect-Mailbox -Identity user01 -Database db1 -LinkedDomainController dc.contoso.com -LinkedMasterAccount
fonafetest01@contoso.com -LinkedCredential $cre -Confirm:$false
But I always get the same question, is there a way to avoid the confirmation question?
Regards.Regards. Jos Osorio.
July 6th, 2011 9:02pm
Hi
-Confirm:$False will supress the prompting of confirmation while running Exchange Shell commands. I tried the above commandlet now in my 2010 test lab. works fine :)
Thanks
Free Windows Admin Tool Kit Click here and download it now
July 7th, 2011 2:52am
Hi Jose,
I also tested in my lab, and found “-Confirm:$false” can work for me.
Now please help me to clarify the following information:
1.When you run “Disable-Mailbox” command on the Exchange Server, can “-Confirm:$false” help you to avoid the confirmation?
Convert Linked Mailboxes
http://technet.microsoft.com/en-us/library/bb201694.aspx
2.What is the version of your Exchange Server?
Thanks,
Evan
July 8th, 2011 4:45am
Hi Evan,
1. -confirm:$false doesn´t help me to avoid information.
2. Exchange 2010.
Regards.Regards. Jos Osorio.
Free Windows Admin Tool Kit Click here and download it now
July 8th, 2011 6:20am
Hi Jose,
Thanks for your reply.
I will try to test on my lab (Exchange 2010), and update the result.
Thanks,
Evan
July 12th, 2011 6:04am
What if you try this.
$confirm = $false
Connect-Mailbox -Identity user01 -Database db1 -LinkedDomainController dc.contoso.com -LinkedMasterAccountfonafetest01@contoso.com -LinkedCredential $cre -Confirm:$confirm
Sukh
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2011 6:44am
same problem.
that workaround don't work:
$confirm = $false
Connect-Mailbox -Identity user01 -Database db1 -LinkedDomainController dc.contoso.com -LinkedMasterAccountfonafetest01@contoso.com -LinkedCredential $cre
-Confirm:$confirm
Version of my exchange - exchange 2010 sp2
July 2nd, 2012 10:46am