1、通讯簿的更新(同步):
Update-CsUserDatabase –verbose
Update-CsAddressBook –verbose
2、在Lync服务器上注册用户:
Enable-CsUser –Identity “域用户名” –RegistrarPool “Lync前端池FQDN” –SipAddressType SamAccountName(SIP地址类型与帐号名相同) –SipDomain 自己的域名
3、为Lync用户启用Enterprise Voice:
Set-CsUser -Identity "域用户名" -EnterpriseVoiceEnabled $True
4、为Lync用户分配拨号计划:
Grant-CsDialPlan -Identity "域用户名" –PolicyName 拨号计划名
5、为Lync用户分配语音策略:
Grant-CsVoicePolicy -Identity "域用户名" –PolicyName 语音策略名
6、为Lync用户分配电话号码:
Set-CsUser -Identity "域用户名" -LineUri tel:电话号码
Lync 2013必须要求使用符合E.164规则的电话号码,例如+86 21 XXXXXXXX
7、以上命令批量设置格式如下:
Get-CsUser -Filter {RegistrarPool -eq "Lync前端池FQDN"} | Set-CsUser (加相应的设置参数:如 “-EnterpriseVoiceEnabled $True”)
8、批量指定用户的Exchange存储策略生效:
Get-CsUser | Set-CsUser -ExchangeArchivingPolicy ArchivingToExchange
9、测试 Lync 2013 Mobile 客户端的会议功能
$passwd1 = ConvertTo-SecureString "Password01" -AsPlainText -Force $passwd2 = ConvertTo-SecureString "Password02" -AsPlainText -Force $testuser1 = New-Object Management.Automation.PSCredential("contoso\UserName1", $passwd1) $testuser2 = New-Object Management.Automation.PSCredential("contoso\UserName2", $passwd2) Test-CsUcwaConference -TargetFqdn pool01.contoso.com -Authentication Negotiate -OrganizerSipAddress sip:[email protected] -OrganizerCredential $testuser1 -ParticipantSipAddress sip:[email protected] -ParticipantCredential $testuser2 -v
Set-CsPersistentChatCategory -Identity testCat -AllowedMembers @{Add="sip:[email protected]", "CN=container,DC=contoso,DC=com"} -DeniedMembers @{Add="sip:[email protected]"} Set-CsPersistentChatCategory -Identity testCat -Creators @{Add="sip:[email protected]"}
转载请注明出处:http://blog.csdn.net/xiezuoyong/article/details/13630071