Changing the number assigned to a user in the Numer w Teams service

Disconnecting a number and assigning it to a new user in the Numer w Teams service.

1. In the Start menu, search for the PowerShell, right-click the icon, and select Run as administrator.

image.png

2. To make sure that you will be able to execute the commands described in the following sections, check the version of the PowerShell. Open PowerShell and enter one of the two following commands.

$PSVersionTable.PSVersion 

$host.Version.

image.png

Aplikacja PowerShell powinna mieć wersję 5.1 (Major: 5, Minor: 1) lub wyższą. Jeżeli jest niższa, zaktualizuj ją zgodnie z instrukcją z poniższej strony: 

https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell#upgrading-existing-windows-powershell  

3. Installation of the MicrosoftTeams module is required to correctly configure the service. One by one, copy the following commands highlighted in blue, paste them into PowerShell and execute by pressing Enter.

Set-ExecutionPolicy RemoteSigned

image.png

Confirm the execution of the above command by selecting Y and pressing enter. Then execute the following commands.

Import-Module -Name MicrosoftTeams

image.png

Set-ExecutionPolicy Restricted

image.png

Confirm the execution of the above command by selecting Y and pressing enter.

4. Log in with a user account with administrator privileges in the tenant. The account with administrator privileges is the one used to create the new domain in the Adding a New Domain to the Microsoft 365 Administration Center instructions. Start with following command.

Connect-MicrosoftTeams

Enter e-mail address in the login window.

image.png

Next, enter your password.

image.png

Once you have successfully logged in, you will see your email address and tenant details.

image.png

5. Disconnect the number and the user by executing the following command. Change uzytkownik@domenafirmowa.pl to the username of the user who should be disconnected from the phone number provided by T-Mobile, which you should insert in place of +48000000000. 

Remove-CsPhoneNumberAssignment -Identity uzytkownik@domenafirmowa.pl -PhoneNumber +48000000000 -PhoneNumberType DirectRouting

6. The final step in configuring Numer w Teams service is connecting users to the phone numbers provided by T-Mobile.

Run the following command, changing uzytkownik@domenafirmowa.pl to the username of the user who should be assigned the phone number provided by T-Mobile, which you should insert in place of +48000000000. 

 

Set-CsPhoneNumberAssignment -Identity uzytkownik@domenafirmowa.pl -PhoneNumber +48000000000 -PhoneNumberType DirectRouting

Once the configuration is complete, it is possible to make phone calls in the MS Teams application. To do this, log into the account of a user to whom you have assigned a phone number and who has a license with the Teams Phone add-on.


Revision #1
Created 22 March 2024 13:47:37 by Sara Roszak
Updated 22 March 2024 13:47:56 by Sara Roszak