如果我们使用powershell脚本修改用户信息列表中的用户的SipAddress,是否有任何损害 [英] Is there any harm if we modify the SipAddress for a user inside the User Info List, using powershell script

查看:179
本文介绍了如果我们使用powershell脚本修改用户信息列表中的用户的SipAddress,是否有任何损害的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在sharepoint 2013内部部署网站内遇到​​以下问题,我们为此做了
为其配置任何用户个人资料托管服务。

I am facing the following problem inside our sharepoint 2013 on-premises site, Where we did NOT configure any user profile managed service for it.


  1. 在我们的根网站集上,我注意到当我将鼠标悬停在ModifiedBy&上时,某些用户的Skype商业状态为"Presence unknown"。 CreatedBy列表字段,如下所示: -


  1. 在Skype弹出窗口中,我可以看到以下字段; (用户名+发送电子邮件链接+即时消息)显示用户的旧电子邮件地址,如下所示
    FirstName.A-LastName@ourcomany.com 而不是 FirstName.ALastName@ourcomany (不含
    - )。如果我点击用户名,我被重定向到 / _ layouts / 15 / userdisp.aspx?ID = ** 页面,我可以看到用户名将具有跟随旧值
    FirstName.A-LastName@ourcomany.com SIP地址内,当他得到工作电子邮件中的正确值。
  1. where inside the Skype popup windows, i can see that the following fields; (username + Send Email link + IM) are showing an old email address for the user as follow FirstName.A-LastName@ourcomany.com instead of FirstName.ALastName@ourcomany (without -). and if i click on the username, and i got redirected to /_layouts/15/userdisp.aspx?ID=** page, i can see that the username will have the following old value FirstName.A-LastName@ourcomany.com inside the SIP Address, while he got the correct value inside the Work Email.

现在修复Skype状态问题,我运行以下power-shell命令,清除用户的SIP地址: -

now to fix the Skype status problem, i run the following power-shell command, to clear out the SIP Address for the user:-

$web = Get-SPWeb http://****/
$users = $web.SiteUserInfoList.GetItemById(30)
foreach ($user in $users) {
Write-Host "User: $($user.DisplayName) - SIP-Address: $($user["SipAddress"])"
$user["SipAddress"] = ""
$user.Update()
Write-Host "User: $($user.DisplayName) - SIP-Address: $($user["SipAddress"])"
}

因此,如果我们清除用户的SIP地址,似乎将修复Skype状态问题。并且用户的Skype状态将显示绿色,黄色等,而不是"存在未知"。但我不确定如果runnign上面的power-shell脚本有任何我不知道的
缺点?

so seems if we clear the SIP Address for the user, the skype status problem will be fixed. and the user's Skype status will show green, yellow, etc instead of "presence unknown". but i am not sure if runnign the above power-shell script have any drawbacks i am unaware of?

谢谢

推荐答案

您必须在Skype服务器场中修复此问题。 
you have to fix this within your skype farm. 


这篇关于如果我们使用powershell脚本修改用户信息列表中的用户的SipAddress,是否有任何损害的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆