MicrosoftTeams PowerShell Module 7.2.1 Preview released

MicrosoftTeams PowerShell Module 7.2.1 Preview released

Hi All,

A few days ago, Microsoft has released the MicrosoftTeams PowerShell Module 7.2.1 Preview to the PowerShell Gallery.

PowerShell Gallery MicrosoftTeams 7.2.1-Preview

Read more details in the Release Notes

  • Adds Notify parameter to [Set|Remove]-CsPhoneNumberAssignment cmdlets.
  • Releases [New|Set|Remove|Get|Grant]-CsTeamsPersonalAttendantPolicy cmdlets.
  • Adds OCDIRedirect parameter to [Set|Remove]-CsTeamsUpdateManagementPolicy.

I am using the new PSResourceGet here instead of the PowerShellGet commands.

Check installed Module and what’s available in the PowerShell Gallery

Get-InstalledPSResource -Name MicrosoftTeams -Scope CurrentUser
Find-PSResource -Name MicrosoftTeams -Prerelease

Uninstall the old Module and install the newest Module

Uninstall-PSResource -Name MicrosoftTeams -Scope CurrentUser

I’ve updated the M365PSProfile PowerShell Module and the Uninstall-M365Module Function with the Parameter -FileMode. It will delete the Module Folder of that Module.

Uninstall-M365Module -Modules MicrosoftTeams -Scope CurrentUser -FileMode

Install-PSResource -Name MicrosoftTeams -Scope CurrentUser -Prerelease
Get-InstalledPSResource -Name MicrosoftTeams -Scope CurrentUser

Some basic testing

Connect-MicrosoftTeams
Get-Team
Get-CsOnlineUser -Identity a.bohren@icewolf.ch | fl *Ent*,*host*,*voice*, *line*

New and updated Commands

Adds Notify parameter to [Set|Remove]-CsPhoneNumberAssignment cmdlets.

-Notify > Sends an email to Teams phone user about new telephone number assignment.

Set-CsPhoneNumberAssignment -Identity a.bohren@icewolf.ch -PhoneNumber +41215553970 -PhoneNumberType DirectRouting -Notify

The User receices this Message

Releases [New|Set|Remove|Get|Grant]-CsTeamsPersonalAttendantPolicy cmdlets.

Get-CsTeamsPersonalAttendantPolicy

Adds OCDIRedirect parameter to [Set|Remove]-CsTeamsUpdateManagementPolicy.

-OCDIRedirect This setting controls whether users are redirected from teams.microsoft.com to the unified domain teams.cloud.microsoft. Possible values are:

  • Microsoft Default, Microsoft will manage redirection behavior. If no explicit admin configuration is set, users may be redirected automatically.
  • Disabled, Users will remain on teams.microsoft.com. Use this if your organization’s apps are incompatible with the unified domain.
  • Enabled, Users will be redirected to teams.cloud.microsoft. Use this only if your organization had previously opted out of redirection and now wants to opt back in.
Get-CsTeamsUpdateManagementPolicy

Regards
Andres Bohren

PowerShell Logo

Teams Logo