基于PowerShell的Lync Server管理 使用C# 之 Telephony 功能 查看 /修改

本以为这个属性可以在用户信息中直接反应出来,但是看了好几遍还是没找到这个属性名称

这个功能没有在get-User 的结果中直接反映出来 但是可以通过 Property 查找单个选项 如:

Get-CsUser User1 | Select-Object EnterpriseVoiceEnabled,AudioVideoDisabled,RemoteCallControlTelephonyEnabled 

参考:http://blog.schertz.name/2012/05/viewing-lync-user-telephony-modes-in-powershell/


 设置Telephony  对应图形界面的设置 ,代码实现方式见下表 IPPBXSoftPhoneRoutingEnabled  功能不是所有服务器都有,如果没有此功能去操作它 会出现错误

开启企业语音
Set-CsUser "User1"  –EnterpriseVoiceEnabled $True –AudioVideoDisabled $False –RemoteCallControlTelephonyEnabled $False –IPPBXSoftPhoneRoutingEnabled $False
PC-to-PC only 全部关掉如图 
Set-CsUser "User1" –RemoteCallControlTelephonyEnabled $False –EnterpriseVoiceEnabled $False –AudioVideoDisabled $False –IPPBXSoftPhoneRoutingEnabled $False 

Control Panel option

IPPBXSoftPhone
RoutingEnabled

AudioVideo
Disabled

RemoteCallControl
TelephonyEnabled

EnterpriseVoice
Enabled

Audio/video disabled

$False

$True

$False

$False

PC-to-PC only

$False

$False

$False

$False

Enterprise Voice

$False or $True

$False

$False

$True

Remote call control

$False

$False

$True

$False

 

参考:http://blogs.technet.com/b/nexthop/archive/2010/06/06/howtotelephony.aspx

原文地址:https://www.cnblogs.com/Qbit/p/Lync-Server-2.html