【问题标题】:'Set-AdfsGlobalWebContent' is not recognized as the name of a cmdlet'Set-AdfsGlobalWebContent' 未被识别为 cmdlet 的名称
【发布时间】:2017-02-04 22:42:00
【问题描述】:
我正在尝试使用 powershell 4.0 的“Set-AdfsGlobalWebContent”更改公司名称。
我正在使用 power-shell ISE,但无法获取此命令。
我正在使用 Windows Server 2012 R2
任何人解释我为什么该命令没有显示在情报中?我错过了什么吗?
强制执行此命令后,它给出“'Set-AdfsGlobalWebContent' is not Recognized as the name of a cmdlet”错误。
提前致谢!!!
【问题讨论】:
标签:
powershell
powershell-4.0
【解决方案1】:
来自technet:
要使用这些 cmdlet,您之前必须安装 AD FS 服务器角色。这可以使用服务器管理器中的添加角色和功能向导来完成,也可以选择在 Windows PowerShell 提示符下使用Install-WindowsFeature AD-Federation-Services cmdlet 添加角色。