使用Skype for business PowerShell启用用户账号

网友投稿 827 2022-09-17

使用Skype for business PowerShell启用用户账号

使用Skype for business PowerShell启用用户账号

可以用管理员权限尝试使用Skype for business PowerShell启用用户账号。指令如下所示:

Enable-CsUser -Identity "Administrator" -RegistrarPool "nos-sfb-fe.nos.hk-" -SipAddressType SamAccountName -SipDomain nos.hk-

Enable-CsUser -Identity "gazh" -RegistrarPool "nos-sfb-fe.nos.hk-" -SipAddress "sip:gazh@nos.hk-"

Get-CsAdUser -LdapFilter "department=Finance" | Enable-CsUser -RegistrarPool "nos-sfb-fe.nos.hk-" -SipAddressType SamAccountName -SipDomain nos.hk-

Get-CsAdUser -Filter {Enabled -ne $True} | Enable-CsUser -RegistrarPool "nos-sfb-fe.nos.hk-" -SipAddressType SamAccountName -SipDomain nos.hk-

To apply the update to a Back End server or Standard Edition server

Stop-CsWindowsService

net stop w3svc

Close all Skype for Business Server Management Shell windows.

SkypeServerUpdateInstaller.exe

Start-CsWindowsService

net start w3svc

Apply the changes to the SQL Server databases by doing one of the following.

Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn

If this is an Enterprise Edition Back End Server

Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn -ExcludeCollocatedStores

If this is a Standard Edition server, type the following at a command prompt:

Install-CsDatabase -Update -LocalDatabases

If the Skype for Business Back End pool uses the SQL AlwaysOn availability group, update the AlwaysOn databases as follows:

Install the update on your Skype for Business server or servers.

Run the following PowerShell command in your Skype for Business Management Shell (logged in by using an account that's appropriately permissioned to apply changes to the SQL AlwaysOn databases), as follows:

Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn [sqlpool.contoso.com] -Verbose

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:记一次排查线上程序内存的忽高忽低,又是大集合惹祸了
下一篇:windows的conda 更新本地源
相关文章

 发表评论

暂时没有评论,来抢沙发吧~