Set-CsUser:无法更新 OnPremLineURI,因为用户已同步本地 LineURI

问题描述 投票:0回答:1

有时在 Microsot Teams 中为用户更新 OnPremLineURI 以进行直接路由时,我们会遇到这个奇怪的错误:

命令

>Set-CsUser -Identity "[email protected]" -OnPremLineURI tel:+15149401111 -EnterpriseVoiceEnabled $true

回复:

>Set-CsUser:  Can not update OnPremLineURI as the user has dirsynced onpremise LineURI.

这个问题的许多谷歌都指出,Teams 阻止我们设置

OnPremLineURI
,因为它错误地认为它是从本地 AD 设置的,但事实并非如此。事实上,考虑到 我们的环境中没有 Skype for Business 设置并且从来没有设置过,甚至没有属性可以在本地进行设置。

我们可以通过查找定义了

OnPremLineURI
的帐户来识别损坏的帐户,其中
OnPremLineURIManuallySet
设置为
false
,但我可以向您保证,我们 确实手动设置了此设置之前通过上面的命令手动标记该标志,它应该报告
true
:

Get-CsOnlineUser -Filter {OnPremLineURIManuallySet -eq $False -and EnterpriseVoiceEnabled -eq $true}  |  Format-Table UserPrincipalName, LineURI, OnPremLineURI, VoicePolicy, OnPremLineURIManuallySet, EnterpriseVoiceEnabled

UserPrincipalName             LineURI          OnPremLineURI    VoicePolicy OnPremLineURIManuallySet EnterpriseVoiceEnabled
-----------------             -------          -------------    ----------- ------------------------ ----------------------
[email protected] tel:+15149401111 tel:+15149401111 HybridVoice                    False                   True

到目前为止,我们确定的唯一解决方法是完全删除帐户并重新创建它。有其他人遇到过这个问题或找出问题的原因或可能更好的解决方案吗?

powershell active-directory microsoft-teams
1个回答
0
投票

我猜问题是您在删除 Skype for Business 时没有删除属性。 参见文章, 查看此文档,路由 1 保留了 sip 地址,这意味着拥有现有电话号码的用户需要从本地进行设置,而新用户则需要从云端进行设置。因此,如果您过去使用过 Skype for Business,则选择 2(建议删除所有本地属性)

© www.soinside.com 2019 - 2024. All rights reserved.