Project

O365Essentials

A module that helps to manage some tasks on Office 365/Azure via undocumented API

Stars146
Forks23
Open issues3
PowerShell Gallery downloads29962
Releasev1.0.2
Language: PowerShell Updated: 2026-06-23T11:40:32.0000000+00:00

Documentation

Install O365Essentials

Install O365Essentials from PowerShell Gallery.

Install O365Essentials from PowerShell Gallery:

Install-Module -Name O365Essentials -Scope CurrentUser -AllowClobber

Import the module and connect interactively:

Import-Module O365Essentials
Connect-O365Admin -Verbose

Use WAM when the tenant requires MFA or Windows needs to show the account picker:

$Credential = Get-Credential -UserName 'admin@contoso.com'
Connect-O365Admin -UseWam -Credential $Credential -Tenant '00000000-0000-0000-0000-000000000000' -ForceRefresh -Verbose

Prefer PowerShell 7 or newer so REST errors are easier to read.