Deprecation of Teams PowerShell Module Versions older than 4.x.x

Microsoft informed to deprecate all Teams PowerShell Modules (TPM) with a version older than/below 4.x.x. This means that only more recent PowerShell Modules newer than 4.x.x are going to work in the near future. After June 15th, 2022 TPMs older than 4.x.x will not work anymore.

Retirement Chair Lake
Source: https://pixabay.com/de/photos/h%c3%bctte-see-wasser-natur-sommer-1550083/

As stated by the recent message center notification you need to prepare for this change. If you have scripts in place, to avoid that you scripts fail you should prepare before the date and start using the recent TPM version. Several cmdlets are new others are deprecated.

Source: Microsoft 365 Admin Center Message Center Notification MC350371

In regards of Teams telephony there new cmdlets and the old ones are not longer available in the recent TPM.

Example – Assign Teams Direct Routing Phone Number

Previously

Set-CsUser -Identity apersonname@domainname.tld -LineUri "tel:+49711987654321" -EnterpriseVoiceEnabled $true -HostedVoicemail $true

Today

Set-CsPhoneNumberAssigment -Identity apersonname@domainname.tld -PhoneNumber "+49711987654321" -PhoneNumberType DirectRouting

There are just some small changes but you must obey and know them that it works. For instance, the phone number’s format is important. The prefix “tel:” is not required. I executed the cmdlet with the parameter and phone number incl. “tel:”. It did not fail and did not throw an error in my tests and the phone number was not assigned (even after waiting some time). Re-running the cmdlet without the prefix did the job as expected. So watch out and ensure your scripts work. The above is just one tiny example. For cmdlets’ details check the Teams cmdlet reference or use PowerShell get-help / get-command etc. after you’ve installed the latest TPM.

Quick Tip: Install Teams PowerShell Module

To install the recent stable TPM you can run the following as an admin (with elevated rights):

Install-Module MicrosoftTeams (-Scope AllUsers)

Quick Tip: Update previous Teams PowerShell Module

To update to the recent stable TPM you can run the following as an admin (with elevated rights):

Update-Module MicrosoftTeams

Quick Tip: Uninstall previous Teams PowerShell Module

To uninstall an older TPM version you can run the following as an admin (with elevated rights) in a new PowerShell window and no active loaded TPM.

Uninstall-Module MicrosoftTeams -AllVersions

Additional resources


Discover more from erik365.blog

Subscribe to get the latest posts sent to your email.

4 responses to “Deprecation of Teams PowerShell Module Versions older than 4.x.x”

  1. How to change call forwarding for a Teams user? – erik365.blog Avatar

    […] Deprecation of Teams PowerShell Module Versions older than 4.x.x – erik365.blog […]

    Like

  2. Teams Direct Routing User Number Assigner V0.3 (TDRUNA) – erik365.blog Avatar

    […] Direct Routing. The first release V 0.2 is from June 2021. Now V0.3 primarily adds support for Teams PowerShell Module (TPM) 4.2.0. Previous TPM versions are deprecated and new cmdlets were introduced to manage phone numbers for […]

    Like

  3. Oliver Schaub (@tooronix) Avatar

    Wirst du dein Gui auch updaten? Wir benutzten das regelmässig, mit den neuen Befehlen funktioniert es aber leider nicht mehr richtig..

    Liked by 1 person

    1. Erik Avatar

      Ich werde es mir mal vornehmen den Teams Direct Routing Number Assigner zu aktualisieren und für TPM 4+ fit zu machen. 🙂

      Like

Comment / Kommentar verfassen

I’m Erik

Welcome to Erik’s blog, your go-to space for curated updates and insights on Microsoft Teams, Copilot, and Microsoft 365. Join me as we explore the latest developments, share valuable information, and spread knowledge. This blog not only serves as a source of news but also as my personal collection of notes, openly shared with you all. Let’s elevate teamwork and productivity together!

Let’s connect