13.6k views
4 votes
How to install msonline powershell module

1 Answer

5 votes

Final answer:

To install the MSOnline PowerShell module, open an elevated PowerShell window, use the Install-Module command, potentially trust the repository, and then import the module with Import-Module.

Step-by-step explanation:

How to Install MSOnline PowerShell Module

Installing the MSOnline PowerShell module is a straightforward process and can be done using PowerShellGet. Here’s how you can install MSOnline on your Windows-based system:

  1. Open an elevated PowerShell window. To do this, search for PowerShell, right-click on Windows PowerShell, and select 'Run as administrator'.
  2. Type the following command and press Enter:
  3. If prompted to trust the repository, type 'Y' and press Enter to continue with the installation.
  4. Once the module is installed, you can import it into your PowerShell session using the following command:

After these steps, you should have the MSOnline module installed on your system, allowing you to manage your Azure Active Directory and Office 365 services via PowerShell.

User Alexander Schutte
by
6.6k points