Powershell Office 365
You ll use azure active directory powershell for graph with the module name azuread and azure active directory module for windows powershell with the module name of msonline.
Powershell office 365. Now the first step of course is to connect powershell to office 365. It allows you to automate a lot of tasks by writing your own scripts or change settings with a single command. The web admin interface for office 365 is very good but there are times when powershell is more suited.
This article applies to both microsoft 365 enterprise and office 365 enterprise. The office 365 cli is a cross platform command line interface that enables you to manage your office 365 tenant on any operating system or shell whether you are on windows macos or linux or use cmd powershell bash or zsh. After all cloud solutions promise simplicity and ease of use adjectives rarely used in connection with windows powershell.
The exchange online powershell v2 module abbreviated as the exo v2 module uses modern authentication and works with multi factor authentication mfa for connecting to all exchange related powershell environments in microsoft 365. In this article i ll show you the ten most useful office 365 powershell cmdlets for system administrators. Powershell is a great way to manage your office 365 environment.
Exchange online powershell security compliance powershell and standalone exchange online protection eop powershell. The cli also provides a single unified login to office 365 workloads. This article applies to both microsoft 365 enterprise and office 365 enterprise.
For example you can use powershell automation to easily manage multiple user accounts and licenses and to create reports. Many of the posts on this blog and others will require you to connect to office 365 with powershell. There are two ways to connect to office 365 in powershell.
Connecting to powershell is a simple process where you install the required software and then connect to your microsoft 365 organization. This article explains how. But bear with me.