Office 365-Powershell for the Email Administrator
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:
- list mailboxes
- search mailboxes
- find an email in a user mailbox
- remove email messages from a user mailbox or all mailboxes – useful to remove phishing, worm or virus emails received.
- will show you how to set permissions on folders
- create Shared Mailbox
- Create Shared Calendar and many others.
Come join me and lets have fun using PowerShell for Exchange On-line in Office 365.
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.
This is the proper way to disconnect or close your remote PowerShell session.
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
Let's look at how PowerShell uses attributes and where do we find them and use them.
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.
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.
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.
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.
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
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.
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.
To view if the mailbox has an auto forward rule type
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.
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.