首页 > 解决方案 > 在 powershell 中添加命令 add-teamChannelUser 会发生什么?

问题描述

当我执行命令时:

  Add-TeamChannelUser -GroupID $group -DisplayName "Blabla" -user $user 

如果频道不存在创建一个新频道或简单地说不可能将用户添加到所述频道?

标签: powershellmicrosoft-teams

解决方案


上面的命令

Add-TeamChannelUser -GroupID $group -DisplayName "Blabla" -user $user

返回以下错误

 Add-TeamChannelUser : The term 'Add-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:1 char:1
+ Add-TeamChannelUser -GroupID $group -DisplayName "Blabla" -user $user
+ ~~~~~~~~~~~~~~~~~~~
 + CategoryInfo : ObjectNotFound: (Add-TeamChannelUser:String) [], CommandNotFoundException
 + FullyQualifiedErrorId : CommandNotFoundException

推荐阅读