Sharon demonstrates how to change the default primary address and add a secondary reply-to address for your Exchange Online users using the portal and PowerShell.
- [Instructor] In order to add mailboxes to Exchange Online, you must create the user in the Office 365 admin portal. Once the account in the mailbox have been created, you can then manage that mailbox for the user. Let's show you how to do this. As you can see, I am logged into the Office 365 Admin center using an admin account. I'm going to go ahead and add a new user. We're going to go ahead and add Wendy Smith. And we're going to use Wsmith as her username. I'm going to go ahead and scroll down.
And I'm going to go ahead and assign a license to this user. I'll have to scroll down a little bit more and then click Add. I don't want to send a password with her email. I'll uncheck that and then click Close. If I pop into users, we'll now see that Wendy Smith has been added. We can see her username there, her licenses. I'm going to go ahead and close this, 'cause now we want to manage her mailbox. I'll need to access the Exchange online Admin Center, Click on Admin Centers and Exchange, and then mailboxes.
One thing I want to point out here is you'll notice that you actually can't create a mailbox within this portal. That's why you have to do it in the Office 365 Admin Portal. I'm going to go ahead and double-click on Wendy, and I'll pop into Email Addresses. Wendy has been assigned a SIP address, because we're using Skype. And she also has an SMTP address as well. But if we wanted to add another email address? I'm going to go ahead, click Add. In this case it will be SMTP. And we're going to change her to Wendy, and click OK.
Now that we have the two here to compare, I can point out the differences. You'll notice at the top one, SMTP in bold, this will be the user's primary email address, but that user will receive email to any of the addresses listed here. I'm going to go ahead and double-click on the address that we just created. I'm going to leave it as-is, but I'm going to now make this the reply-to address. This will be the address that will receive all the reply messages. I'm going to click OK. And you will notice that now the bold SMTP is for wendy@.
And go ahead and save that. I'm going to go ahead and show you the same process now in PowerShell. The easiest way to access PowerShell is to click the Windows key, and then start typing PowerShell. I'm going to enter the PowerShell integrated scripting environment, and I need to launch it as Administrator. I'm going to go ahead, right-click, and run as Administrator. I already have a script that's prepared for us. I'm going to go ahead and open that. Click File, Open, and my script.
The first thing we need to do is authenticate to the Office 365 service. To do so, I'm going to use the Get-Credential command, and then pass those results to the variable user credential. Next, I'm going to connect to the Microsoft Online Service. I'm now going to connect to Exchange Online. To do so, I'm going to use New-PSSession. I have included our connection URI, I am passing our variable information for the credential.
Our authentication is basic, and we are allowing for redirection. Next, we're going to go ahead and import that PSSession. I'm going to go ahead and clear this screen before we continue. The first thing we're going to do is add a new mailbox for our user Jim Moriarty. I'm assigning Moriarty a user account from our domain. I've included a very insecure password. And our last option in this line, -ResetPasswordOnNextLogon, I have this set to false, but normally you would have this set to true.
I'm going to go ahead and run this command. Now we do have a couple of warnings here, nothing to be concerned about. Our first warning lets me know that I actually haven't assigned a license to this user, as of yet. I could have done that within the command itself. Or you have the option of doing it through the Office 365 Admin Center. Our next warning's letting us know that our user will not be able login for about 15 minutes. I'm going to go ahead and clear the screen again. I'm now going to add an additional email address for Moriarty.
Our email address will be archenemy@ our domain. We use a set mailbox command for this. Let's go ahead and make sure that that email address was added. I'm going to use the Get-Mailbox command, and I want to specify the email addresses. You'll notice here we have our two email addresses, we have our archenemy and we have Moriarty. Moriarty is bold, and that is our primary. But we want to go ahead and change this. I would like the archenemy to become our primary email address. To do so, I'm going to use Set-Mailbox, and I'm going to use the parameter -windowsEmailAddress, and then specify that email address.
And, again, let's take a look to make sure that that change has occurred. You will now notice that archenemy has a bolded SMTP. And if I want to go ahead and remove that mailbox, I can easily use the Remove-Mailbox command. And, yes, I'm sure. So I've shown you two ways where you can add in new users. If you're using the portal, the accounts will have to be created within the Office 365 Admin section. If you're using PowerShell, you can go ahead and directly add those email addresses, but be sure to include the licensing, otherwise you'll have to log back into the portal and assign those licenses manually.
- Changing the default and reply-to email addresses
- Managing SIP addresses
- Creating resource mailboxes
- Creating external contacts
- Creating distribution lists
- Creating and applying retention policies for Exchange mailboxes
- Configuring Skype for Business Online communication settings