Share via

Why I am getting below error on Powershell?

Vinod Survase 4,811 Reputation points
2021-09-06T16:43:35.61+00:00

Why I am getting below error on PowerShell?

I have installed updated Teams PowerShell module still I am getting this error.

Get-TeamChannelUser : The term 'Get-TeamChannelUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:241 char:8

  • Get-TeamChannelUser -GroupId $GroupId -DisplayName $PrivateCha ...
  • ~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ObjectNotFound: (Get-TeamChannelUser:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments

Answer accepted by question author

Anonymous
2021-09-07T02:00:54.77+00:00

Hi @Vinod Survase ,

Actually this cmdlet does exist, in preview versions.
https://learn.microsoft.com/en-us/powershell/module/teams/get-teamchanneluser?view=teams-ps
129687-image.png

So you gonna uninstall the MicrosoftTeams powershell and install a preview version:

Uninstall-Module MicrosoftTeams  
Install-Module MicrosoftTeams -AllowPrerelease -RequiredVersion "2.4.1-preview"  

129704-image.png

Best regards,
Lou


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Leon Laude 86,201 Reputation points
    2021-09-06T17:01:16.753+00:00

    Hi @Vinod Survase ,

    Did you also import the Teams PowerShell module?
    Import-Module MicrosoftTeamsPowerShell

    ----------

    If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

    Best regards,
    Leon

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.