4.35 out of 5
31 reviews on Udemy

Office 365-Powershell for the Email Administrator

Manage Office 365 mailboxes on the cloud with PowerShell
Robert Mira
274 students enrolled
English [Auto-generated]
At the end of this course you will be able to use Powershell with confidence
Manage recipients with powershell
You will learn to go beyond what the Office 365 portal allows you to do in order to manage user's mailboxes.
Create a simple script to login to Powershell
Manage mailbox permissions
Create shared mailboxes and shared calendars
many other useful PowerShell cmdlets for Exchange OnLine

Do you need to manage Microsoft Office 365 mailboxes in the cloud? Need to do more than the Office 365 portal allows you to do? You heard of PowerShell but don’t know where to start? This is the course for you.

I once was where you are right now. I learned PowerShell for Exchange On-line and my life has been a lot better because of it.

In this course I will give you a quick introduction to PowerShell but will not go too deep into it.

Will give you tips to manage user’s mailboxes.

We will use PowerShell to:

  1. list mailboxes
  2. search mailboxes
  3. find an email in a user mailbox
  4. remove email messages from a user mailbox or all mailboxes – useful to remove phishing, worm or virus emails received.
  5. will show you how to set permissions on folders
  6. create Shared Mailbox
  7. Create Shared Calendar and many others.

Come join me and lets have fun using PowerShell for Exchange On-line in Office 365.


GUI vs PowerShell

Login in to PowerShell

login in to Powershell

Situation: How can we properly login to PowerShell for Exchange OnLine.

Note: Resources are included for download and use as you need.

Disconnect from Powershell

This is the proper way to disconnect or close your remote PowerShell session.

Looking at the transcript file

The PowerShell transcript file is a useful file that contains everything that got displayed on your screen during the PowerShell session.

Real Life management examples

Using Attributes in PowerShell

Let's look at how PowerShell uses attributes and where do we find them and use them.

Set an Out of Office email notification for a user that has left the company.

Situation: As standard practice in the company every user that leaves the company will have their mailbox kept disabled for 30 days. Also, an Out of Office mailbox reply must be set so when someone sends the user an email they can be informed that the user is no longer with the company and direct them to someone else for assistance. With PowerShell we can accomplish this very quickly.

 NOTE: Resource files used are available to download and use in your environment. Feel free to change text as needed.

Give Permissions to a Shared Mailbox folder

Situation: There is a Shared Mailbox and other users need to have different type of access permissions to that mailbox folder. PowerShell can do so  very quick.

Give Permissions to a Shared Calendar

Situation: Need to give permissions to a mailbox calendar to another user. It could be a Shared Calendar or another user's calendar. Normally a Supervisor might want to give others access to his calendar.

Give users full permissions to a Mailbox

Situation: You need to give a user "full permission" access to a another mailbox. It could be a Shared Mailbox or another user's mailbox

Note: PowerShell can do so with 2 very interesting options.

Create a list of the members of a Distribution Group

Situation: Someone might request a list of all the members in a Distribution Group in Exchange OnLine. The list might be composed of more than a handful of members.

Note: PowerShell can export the members of the Distribution Group into a list

Create a list of the members of a Dynamic Distribution Group

Situation: Dynamic Distribution Group members cannot be easily be seen so PowerShell can assist us with that.

Note: We will use PowerShell to filter and display the  results in a file format that we could use. 

Get user mailbox statistics

To be proactive you want to see how large the user's mailboxes are before users start to call because their mailboxes are getting full.

Find if mailbox has a rule

To view if the mailbox has an auto forward rule type

Get a list of licensed and unlicensed users

Situation: Need to find users that are or aren't licensed for Office 365.

Note: For that information PowerShell will need to connect to Azure AD.


Microsoft Online Sign-In Assistant for IT Professional

Windows Azure Active Directory Module for Windows PowerShell

View output in Grid View

Situation: You want to view a list of users and their properties on the screen and be able to sort them out by the fields displayed.

Solution: Use the PowerShell 'Grid View' output option.

You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.4 out of 5
31 Ratings

Detailed Rating

Stars 5
Stars 4
Stars 3
Stars 2
Stars 1
30-Day Money-Back Guarantee


2 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion