They run under the MicrosoftTeams module for PowerShell, but you also need to make sure you have the latest version. Set-CsPhoneNumberAssignment and Remove-CsPhoneNumberAssignment I’d been allocating numbers with the Set-CsOnlineVoiceUser command. In summary, these commands are being deprecated “The retirement is planned to begin in early April and be complete by mid-April.” :Īnd Set-CSUser can’t be used to allocate phone numbers either. If you run “Get-Command -Name ‘*teamchannel*’ you will see all “TeamChannelUser commands are in the Preview Module.Microsoft has sent out an announcement on PowerShell changes for setting and removing phone numbers in Microsoft Teams:Ĭhanges coming to phone number assignment using Teams PowerShell Module cmdlets
#DOWNLOAD MICROSOFT TEAMS POWERSHELL MODULE INSTALL#
Install-Module -Name MicrosoftTeams -RequiredVersion 1.1.3-preview -AllowPrerelease Install Teams Preview Module To install the module run: Uninstall-Module MicrosoftTeams Once PowerShellGet has been updated, I found I had to open a new PowerShell window before I could install the Teams Preview Module. To resolve you have to use Install-Module and specify the -Force switch (Also specify repo if you have multiple installed) Install-Module -Name PowerShellGet -Repository PSGallery -Force You would think “Update-Module -Name PowerShellGet” would resolve, but you just get a different error: Update-Module : Module 'PowerShellGet' was not installed by using Install-Module, so it cannot be updated. This is due to PowerShellGet being out of date on your machine. The main problem you need to address is AllowPreRelease being missing from Install-Module.
Error: "Input string was not in a correct format." RequiredVersion error Install-Module : A parameter cannot be found that matches parameter name 'AllowPreRelease'. "1.1.3-preview" to type "System.Version". You may get a couple of errors when trying to install the Public Preview module Install-Module : Cannot process argument transformation on parameter 'RequiredVersion'. Get-TeamChannelUser still advises to install the Beta module from Posh Test Gallery and Add-TeamsChannelUser advises to install the “Public Preview” version from PowerShell Gallery (I’m sure MS are in the process of updating their documentation): Add-TeamChannelUser advises to use PowerShell Public Preview The link is still on the home page and is discussed here: 404 not found Install Public Preview Module It would appear over the last couple of weeks (August 2020) the MicrosoftTeams module on PoshTestGallery returns a “404 – Page not found” indicating Microsoft have removed it.
PoshTestGallery Install-Module -Name MicrosoftTeams ERROR No match was found for the specified search criteria and module name
If you try to install a module from Posh Test Gallery you will get the following error: Get-TeamChannelUser advises to use PoshTestGallery. Get-TeamChannelUser) still references Posh Test Gallery. This has now been replaced by the Preview Module however some MS documentation (i.e. Microsoft documentation used to point you to the to get the module. managing Private Channel users (Get-TeamChannelUser, Add-TeamChannelUser etc) Installing Beta Module The Public Preview and Beta modules are useful for testing new features, i.e.