标签:服务器 Lync Skype for business UC SFB
1.启用用户
#测试用户
Enable-CsUser -Identity SFBDemo01 -RegistrarPool SFBFEPool01.i-x-Cloud.com -SipAddress "sip:SFBDemo01@i-x-Cloud.com"
Enable-CsUser -Identity SFBDemo02 -RegistrarPool SFBFEPool01.i-x-Cloud.com -SipAddress "sip:SFBDemo01@i-x-Cloud.com"
Enable-CsUser -Identity SFBDemo03 -RegistrarPool SFBFEPool01.i-x-Cloud.com -SipAddress "sip:SFBDemo01@i-x-Cloud.com"
Enable-CsUser -Identity SFBDemo04 -RegistrarPool SFBFEPool01.i-x-Cloud.com -SipAddress "sip:SFBDemo01@i-x-Cloud.com"
Enable-CsUser -Identity SFBDemo05 -RegistrarPool SFBFEPool01.i-x-Cloud.com -SipAddress "sip:SFBDemo01@i-x-Cloud.com"
#实际用户
Enable-CsUser -Identity I-X-CLOUD\10810058 -RegistrarPool SFBFEPool01.i-x-Cloud.com -SipAddress "sip:sophia.feng@i-x-Cloud.com"
2.启用企业语音
#按用户
Set-CsUser -Identity SFBDemo01 -EnterpriseVoiceEnabled $True
#按OU
Get-CsUser -OU "ou=I-x-Cloud,dc=i-x-Cloud,dc=com" | Set-CsUser -EnterpriseVoiceEnabled $True
3.设置分机号
Set-CsUser -Identity SFBDemo01 -LineURI tel:+28001
Set-CsUser -Identity SFBDemo02 -LineURI tel:+28002
Set-CsUser -Identity SFBDemo03 -LineURI tel:+28003
Set-CsUser -Identity SFBDemo04 -LineURI tel:+28004
Set-CsUser -Identity SFBDemo05 -LineURI tel:+28005
Set-CsUser -Identity SFBDemo01 -LineURI 'TEL:+862032511771;ext=28001'
Set-CsUser -Identity SFBDemo03 -LineURI 'TEL:+862032511773;ext=28003'
Set-CsUser -Identity SFBDemo05 -LineURI 'TEL:+862032511775;ext=28005'
Set-CsUser -Identity 'CN= A 10111731,OU=Users,OU=NingXi,OU=I-x-Cloud,DC=i-x-Cloud,DC=com' -LineURI 'TEL:+862082962898;ext=20197'
PS C:\> Get-CsUser -Identity 'SFBDemo*' | Select DisplayName,LineURI
DisplayName LineURI
----------- -------
SFBDemo01 TEL:+862032511771;ext=28001
SFBDemo02 tel:+28002
SFBDemo03 TEL:+862032511773;ext=28003
SFBDemo04 tel:+28004
SFBDemo05 TEL:+862032511775;ext=28005
4.设置拨号计划
Grant-CsDialPlan -Identity SFBDemo01 -PolicyName 'DialPlan01_GZ.i-x-Cloud.com'
Grant-CsDialPlan -Identity SFBDemo02 -PolicyName 'DialPlan01_GZ.i-x-Cloud.com'
Grant-CsDialPlan -Identity SFBDemo03 -PolicyName 'DialPlan01_GZ.i-x-Cloud.com'
Grant-CsDialPlan -Identity SFBDemo04 -PolicyName 'DialPlan01_GZ.i-x-Cloud.com'
Grant-CsDialPlan -Identity SFBDemo05 -PolicyName 'DialPlan01_GZ.i-x-Cloud.com'
Get-CsUser -OU "ou=I-x-Cloud,dc=i-x-Cloud,dc=com" | Grant-CsDialPlan -PolicyName 'DialPlan01_GZ.i-x-Cloud.com'
PowerShell 运维菜鸟系列-04-批量-启用用户-启用企业语音-设置分机号(项目中)
标签:服务器 Lync Skype for business UC SFB
原文地址:http://blog.51cto.com/dynamic/2072804