首页 > 其他分享 >Microsoft 365 开发:执行Get-AzureADDirectorySettingTemplate命令错误

Microsoft 365 开发:执行Get-AzureADDirectorySettingTemplate命令错误

时间:2022-12-11 15:00:12浏览次数:74  
标签:执行 Get AzureADDirectorySettingTemplate 如下 命令 path 365

Blog链接:​​​https://blog.51cto.com/13969817​

近期有小伙伴执行Azure AD相关命令Get-AzureADDirectorySettingTemplate时,遇到如下错误:

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

Microsoft 365 开发:执行Get-AzureADDirectorySettingTemplate命令错误_Get-AzureADDirectory

看错误信息提示,应该是没有安装AzureADPreview导致,建议操作如下:

1.      执行安装AzureADpreview的命令:Install-Module AzureADPreview,如下所示:

Microsoft 365 开发:执行Get-AzureADDirectorySettingTemplate命令错误_Get-AzureADDirectory_02

2.      部署完成之后,连接AzureAD,命令如下:Connect-AzureAD

Microsoft 365 开发:执行Get-AzureADDirectorySettingTemplate命令错误_Get-AzureADDirectory_03

3.      确定完成之后,再次执行Get-AzureADDirectorySettingTemplate命令,执行成功

Microsoft 365 开发:执行Get-AzureADDirectorySettingTemplate命令错误_Get-AzureADDirectory_04

整理本文,希望该排错方向,给需要的小伙伴提供帮助。

标签:执行,Get,AzureADDirectorySettingTemplate,如下,命令,path,365
From: https://blog.51cto.com/u_13969817/5928346

相关文章