local -
OrganizationalUnit ForeignDomain -Password
$Password
Make sure the password has been assigned a variable $Password . In addition, you can also mail - enable
an existing Active Directory user object using the Enable-MailUser cmdlet.
Modifying a Mail User and Mail Contact
Modifying mail user or mail contact could involve disabling, removing, or simply updating certain
attributes of both objects.
To remove an existing mail contact from Active Directory, use the Remove-MailContact cmdlet and run
the following command:
Remove-MailContact -Identity ???John Doe??? -DomainController ExchangeExchange.Local
The Remove-MailContact cmdlet has just two parameters: the identity of the object to be removed,
which is required, and the FQDN of the domain controller that writes the configuration change to Active
Directory. The second parameter is optional. Keep in mind that using this command not only removes
the associated Exchange configuration on the contact, but it also removes MailContact object itself from
Active Directory.
Disabling the mail contact involves removing all the Exchange attributes from the contact. This, however,
does not remove the object from Active Directory. To accomplish this, use the Disable-MailContact
cmdlet. As with the Remove-MailContact cmdlet, this cmdlet has two parameters: the identity, which is
required, and the FQDN of the domain controller, which writes the change in Active Directory:
Disable-MailContact -Identity ???John Doe??? -DomainController ExchangeExchange.
Pages:
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222