Lync日常运维常用命令

版权声明: https://blog.csdn.net/yetaodiao/article/details/82388291

最近部署完成了Lync 服务器,即将转向运维阶段,运维过程中会涉及到为员工启用Lync帐号、语音功能以及导出统计当前哪些用户开启Lync权限,在这里我简单汇总一些常用的,供大家参考,后期我还会将用到的命令出来供大家平时运维使用。

1、强制刷新更新状态

Invoke-CSManagementStoreReplication  

2、检查更新状态

Get-CsManagementStoreReplicationStatus

3、为禁用的账户开启Lync功能

Enable-CsUser

4、为某个部门开启lync功能

Get-CsAdUser -LdapFilter "department=HR" | Enable-CsUser -RegistrarPool "pool01.TOA.cn" -SipAddressType UserPrincipalName

5、为用户启用Lync功能

Enable-CsUser -Identity "[email protected]" -RegistrarPool "pool01.TOA.CN" -SipAddressType UserPrincipalName

6、禁用单个用户Lync功能

Disable-CsUser -Identity "[email protected]"

7、暂时禁用Lync功能

Set-CsUser -Identity "Lys01r" -Enabled $False

8、恢复暂时禁用的Lync功能

Set-CsUser -Identity "Lys01" -Enabled $True

9、为用户启用电话服务:企业语音和线路URL:tel:+01012345

Set-CsUser -Identity "[email protected]" -EnterpriseVoiceEnabled $True -LineURI "TEL:+01012345"

10、导出当前已经开启Lync权限的用户

get-csuser | Select-Object DisplayName, SAMAccountname,LineURI,RegistrarPool  >D:\1.XLS

康巴得!

猜你喜欢

转载自blog.csdn.net/yetaodiao/article/details/82388291