Is there any code # cmd powershell to change Lync call forwarding setting to new number?

202 Views Asked by At

Im looking for any powershell or c# code to integrate into my c# program. The require fuction is trigger change lync forwarding to new mobile number. Anyone can help please?

1

There are 1 best solutions below

0
Transformer On

Hope this helps based on what I understood from your question, you can modify and try...

Options 1:

Use the following powershell command / play around with options

  1. To create the un/assigned number range, (or you can do it for just one number)
  2. Then assign your forward/announcement to the un/assigned number range. You should also be to do this via the Skype for Business Control Panel.

    New-CsUnassignedNumber -Identity “Unassigned Number Range” -NumberRangeStart “+91344000” -NumberRangeEnd ““+91344002” -AnnouncementName “Forward Announcement” -AnnouncementService ApplicationServer:Skype.skypedevlabs.tykt.org


Option 2: SEFAUtil

Use the the Lync/Skype Resource Kit installed and have deployed SEFAUTIL as a CSTrustedApplication (http://technet.microsoft.com/en-us/library/jj945659.aspx)

If the Lync/Skype (for newer versions) user already has a Call forwarding number set up you can change it

sefautil /server:poolname.domain.com
[email protected]
/setfwddestination:+18000000

If the user doesnt have call forward, you can turn it on:

sefautil /server:poolname.domain.com
[email protected]
/setfwddestination:+18000000 /enablefwdimmediate

If you want to disable call forwarding completely:

sefautil /server:poolname.domain.com
[email protected] /disablefwdimmediate

I also attached the link to download the Utility above!