About Remove-MailContact command and confirm
Hi guys,
i am working to a powershell script using a ems command.
I try to use a Remove-MailContact :
'Mydomain/exchange/user test' | Remove-MailContact
but it ask me a confirm.
I try also with -Confirm switch but nothing.
How i can avoid a confirm for Remove-MailContact command ?
I use Exchange 2010 sp1 RU3
Thanks in advance.
May 16th, 2011 1:16pm
maybe use -Confirm:$Y
Have you tried to use the -identity
Remove-MailContact -Identity contoso.com/john
Free Windows Admin Tool Kit Click here and download it now
May 16th, 2011 1:24pm
Did you do remove-mailcontact contact1 -confirm:$falseJames Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
May 16th, 2011 1:36pm