![]() ![]() Run the following command in PowerShell: Install-Module MSOnline Connecting PowerShell to Office 365 Next, we are going to install the module in PowerShell. First, download and install the Microsoft Online Services Sign-In Assistant. The MSOnline module requires a little more work. Install-Module AzureAD Step 2 – Install Microsoft Online Services Sign-In Assistant Type the following command: # This will install the AzureAD module from the PowerShell Gallery, you might get a warning that the # source is untrusted, but you can safely type Y and press enter. Open PowerShell in admin mode ( Windows key + X and select Windows PowerShell (Admin)) Step 1 – Install AzureAD module in PowerShell You can use them both together on your system without any problems. Installing the PowerShell Modulesįirst, we are going to install both PowerShell modules. You will need both at the moment of writing, AzureAD is the successor of MSOnline, but not all functionalities are available in the newer AzureAD module. Microsoft Azure Active Directory Module for Windows Powershell( MSOnline) and the newer Azure Active Directory PowerShell for Graph ( AzureAD). There are two ways to connect to Office 365 in PowerShell. ![]() 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 changing settings with a single command. PowerShell is a great way to manage your Office 365 environment. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |