From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Managing mail contacts

Managing mail contacts

- [Instructor] So to work with contacts in Exchange using Powershell, you first need an Exchange Powershell session open or be running this inside of the Exchange Management shell. You can see here that I've got a remote Powershell session open, since I'm running the ISE. The first thing we can do is actually creating contacts. To do that, specifically creating a contact in Exchange, we use the new MailContact commandlet. You can see here you need to name the external email address of this contact as well as the organizational unit that I want to put it into in ActiveDirectory, so I've got an organizational unit for contacts called Contacts, so we'll go ahead and create this new contact. And we can verify that that was created using the Get-MailContact commandlet, so you can see there that we've now got Darth Vader as one of our contacts. And you'll notice for these commandlets the noun is MailContact instead of Contact. We've got a contact in ActiveDirectory, and I didn't think to…

Contents