通过Powershell更改所有SPO用户的电话号码 [英] Change Phone number for all SPO users via Powershell
本文介绍了通过Powershell更改所有SPO用户的电话号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好!
我想通过运行命令来更改Sharepoint中所有用户的电话号码(我不想为每个人手动编辑电话号码).
I would like to change the phone number to all my users in Sharepoint by running a command ( I do not want to edit it for everyone manually).
问题是我试图为所有人设置相同的电话号码,并且试图运行命令,连接到SPO后,让我知道这是否有效:
The thing is I'm trying to set the same Phone number for all of them and I'm trying to run a command, after connecting to SPO, let me know if this works:
设置-MsolUser -All -PhoneNumber"102391287"
Set-MsolUser -All -PhoneNumber "102391287"
推荐答案
嗨乔伊.
如果要将相同的电话号码分配给所有用户,则可以使用以下PowerShell代码段
If you want to assign the same phone number to all the users you can use the following PowerShell snippet
Get-MsolUser | Set-MsolUser -PhoneNumber "102391287"
再见.
这篇关于通过Powershell更改所有SPO用户的电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文