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

Curated Examples

Review group naming policy settings

Use O365Essentials to inspect Microsoft 365 group naming policy settings before making changes.

This pattern is useful when you need to review the current naming policy before deciding whether to apply a change.

It is adapted from Examples/GetO365AzureGroupNaming.ps1.

Example

Import-Module O365Essentials

Connect-O365Admin -Verbose

Get-O365AzureGroupNamingPolicy -Verbose | Format-Table

Set-O365AzureGroupNamingPolicy `
    -Prefix 'M365' `
    -Suffix 'Department', 'Region' `
    -Verbose

What this demonstrates

  • reviewing the current group naming policy
  • applying an intentional naming policy change after review
  • avoiding tenant-specific suffix values

Source