PowerShell Tip#2: Find a missing cmdlet – Engineerer
326
post-template-default,single,single-post,postid-326,single-format-standard,wp-custom-logo,bridge-core-3.1.2,qode-page-transition-enabled,ajax_fade,page_not_loaded,,footer_responsive_adv,hide_top_bar_on_mobile_header,qode-content-sidebar-responsive,qode-theme-ver-30.1,qode-theme-bridge,qode_header_in_grid,elementor-default,elementor-template-full-width,elementor-kit-641,elementor-page-1064

PowerShell Tip#2: Find a missing cmdlet

This customer probably disabled Office Groups creation in his O365 Tenant. I had to check it via PowerShell.

By following this MS docs entry I received an error for an answer.

The term 'Get-AzureADDirectorySetting' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.

I felt pretty smart by using “Find-Module” instead of googling around.

Find-Module -Command Get-AzureADDirectorySetting

This cmdlet tells us the module that contains the asked command.

Output of Find-Module

The only thing that was left was to install the missing module.

Install-Module AzureADPreview -AllowClobber

Done 😁