Project

O365Essentials

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

Stars144
Forks24
Open issues13
PowerShell Gallery downloads29834
Releasev1.0.2
Language: PowerShell Updated: 2026-04-02T21:43:18.0000000+00:00

Curated Examples

Preview group naming policy changes

Use O365Essentials to inspect and preview Microsoft 365 group naming policy changes.

This pattern is useful when you need to review the current naming policy and model a change without applying it.

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 `
    -WhatIf

What this demonstrates

  • reviewing the current group naming policy
  • modeling a naming change with -WhatIf
  • avoiding tenant-specific suffix values

Source