Get-AzureADDirectorySettingTemplate : The term ‘Get-AzureADDirectorySettingTemplate’ is not recognized.

0
598
views

Get-AzureADDirectorySettingTemplate : The term ‘Get-AzureADDirectorySettingTemplate’ is not recognized.

You receive the following error when trying to execute the following cmdlet: Get-AzureADDirectorySettingTemplate.

To resolve this error, you need to install the following PowerShell Module AzureADPreview.

But you will find that users have installed the PowerShell Module AzureAD and this Module does not have the cmdlets for Get-AzureADDirectorySetting.

To get this error resolve, you need to uninstall the AzureAD PowerShell Module by following the below.

To remove the incorrect module run the following.

Uninstall-Module -Name AzureAD

Once the removal is done, run the following to install the new PowerShell Module.

Install-Module -Name AzureADPreview

Next, we can verify that we have the latest version of the PowerShell Module installed.

Connect-AzureAD

As we can see the version of the PowerShell cmdlets is on the latest version.

Now let’s try again and run the cmdlet, Get-AzureADDirectorySettingTemplate

As we can see by removing the old PowerShell AzureAD Module, the PowerShell cmdlet is now available.

ThatLazyAdmin

Sharing is caring!

LEAVE A REPLY

Please enter your comment!
Please enter your name here