By default Microsoft Skype for Business will be preferred application to receive incoming voice call. We can set it to Microsoft Teams by using powershell.
1. Click Start, click All Programs, click Accessories, click Windows PowerShell, and then click Windows PowerShell.
After the Windows PowerShell console appears, you must then create a Windows PowerShell credentials object. The credentials object is used to securely convey your user name and password to Skype for Business Online. To create a credentials object, type the following command at the Windows PowerShell prompt and then press ENTER:
$credential = Get-Credential
After you press ENTER, you should see the Windows PowerShell Credential dialog box. In the User name box, type your Skype for Business Online user name. In the Password box, type your Skype for Business Online password.
if you want to verify that the object was created, simply type the variable name at the Windows PowerShell prompt and press ENTER:
2. Next you need to import SkypeOnlineConnector module. To do that run the followign commands:
3. After you have created the credentials object, you can then create a new remote Windows PowerShell session that makes a connection to Skype for Business Online. To do this, type the following command at the Windows PowerShell prompt and then press ENTER:
$session = New-CsOnlineSession -Credential $credential -Verbose
If your connection succeeds, you’ll see messages similar to this in the Windows PowerShell console: