r/PowerShell • • Apr 22 '26

TeamsVoice powershell help?

I am putting together some tools to make my co-workers jobs easier and I have alost everything automated. What I am trying to do is unassigned a phone number from a user, and change the "License Usage" from User to VoiceApp. I can do this from the Teams AC but I cannot seem to find any way to do this within the MicrosoftTeams powershell tools.

4 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/dlukz Apr 29 '26 edited Apr 29 '26

If change-licenseusage works that will handle all of my problems. The end goal is to supply 2 usernames for the script. Create a RA/AA account for user 1, capture the phone number from user 1, unassigned it, swap the number from user to voice app, assign it to the RA, link the RA with the AA and have the AA forward calls to user 2.

When we term a user we want that phone number to be transfered to their manager, or another designated user. I also have time stamps added to the name of the RA/AA to know when we are ok to stop the forward. I will find a way to make this work. Thank you!

EDIT: Damnit, I was responding on mobile and didn't see that you defined a function for Change-LicenseUsage.