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.
看错误信息提示,应该是没有安装AzureADPreview导致,建议操作如下:
1. 执行安装AzureADpreview的命令:Install-Module AzureADPreview,如下所示:
2. 部署完成之后,连接AzureAD,命令如下:Connect-AzureAD
3. 确定完成之后,再次执行Get-AzureADDirectorySettingTemplate命令,执行成功
整理本文,希望该排错方向,给需要的小伙伴提供帮助。
标签:执行,Get,AzureADDirectorySettingTemplate,如下,命令,path,365 From: https://blog.51cto.com/u_13969817/5928346