Using the cmdshell to add an e-mail address
Thought this was interesting in the Exchange help file.
It is not possible to add an e-mail address with a single command using the Set-Mailbox cmdlet. To add an e-mail address to an existing mailbox, you need to store the mailbox configuration in a variable and modify the EmailAddresses field of that variable. There are two ways to modify the EmailAddresses field of the temporary variable. The following example shows both ways to add two additional addresses to the user john@contoso.com:
$Temp = Get-Mailbox -Identity
$Temp.EmailAddresses.Add("smtp:john@secondaddress.contoso.com")
$Temp.EmailAddresses += ("smtp:john@thirdaddress.contoso.com")
Set-Mailbox -Instance $Temp
Of course the GUI will allow simple modifications as you've done before.
5 Comments:
People should read this.
Entschuldigen Sie, dass ich mich einmische, aber meiner Meinung nach ist dieses Thema schon nicht aktuell. viagra viagra kaufen [url=http//t7-isis.org]viagra[/url]
Bromas a parte! http://nuevascarreras.com/comprar-cialis-es/ cialis 20 mg precio Grazie per il vostro sostegno, come posso ringraziarvi? [url=http://nuevascarreras.com/tag/comprar-cialis/ ]cialis 20 mg efectos secundarios [/url]
No sois derecho. Soy seguro. Lo discutiremos. Escriban en PM, hablaremos. [url=http://csalamanca.com/tag/sin-receta/ ]viagra es de venta libre [/url] la pieza muy Гєtil http://csalamanca.com/tag/sin-receta/ viagra 50 mg precio
SГ© que es necesario hacer))) [url=http://csalamanca.com/tag/sin-receta/ ]comprar viagra en argentina [/url] Felicito, me parece esto el pensamiento excelente http://csalamanca.com/category/viagra/ comprar viagra sin receta medica
Post a Comment
<< Home