用户的批量处理

单个用户的添加:

Enable-CsUser -Identity "U8" -RegistrarPool "Lync-Server.gwamcc-dev.com" -SipAddressType SamAccountName  -SipDomain gwamcc-dev.com 将该用户分配给注册器池 Lync-Server.gwamcc-dev.com,并且 Lync Server 使用用户的 SamAccountName (U8) 并后跟 SIP 域 gwamcc-dev.com 来自动生成 SIP 地址。

Enable-CsUser -Identity "U8" -RegistrarPool "Lync-Server.gwamcc-dev.com" -SipAddress "sip: U8@ gwamcc-dev.com" Identity,标识要启用的帐户;RegistrarPool,指示新用户的主服务器;SipAddress,为新用户指定 SIP 地址。

批量删除用户: Get-CsAdUser –ou “ou=test,dc=gwamcc-dev,dc=com” | Disable-CsUser

批量增加用户 Get-CsAdUser –ou “ou=test,dc=gwamcc-dev,dc=com” | Enable-CsUser –registrarpool “Lync-Server.gwamcc-dev.com” -SipAddressType SamAccountName –SipDomain gwamcc-dev.com

原文地址:https://www.cnblogs.com/zorro8z8/p/2647704.html