Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows PowerShell:Cmdlet Connect MicrosoftTeam未找到,尽管已加载二进制文件_Windows_Powershell_Microsoft Teams - Fatal编程技术网

Windows PowerShell:Cmdlet Connect MicrosoftTeam未找到,尽管已加载二进制文件

Windows PowerShell:Cmdlet Connect MicrosoftTeam未找到,尽管已加载二进制文件,windows,powershell,microsoft-teams,Windows,Powershell,Microsoft Teams,在PowerShell中加载MicrosoftTeams模块时,我确实遇到了问题。我下载并导入了具有AllSigned授权的模块(无错误): 检查模块是否正确加载,我还打印了可用模块,显示当前版本号: PS C:\WINDOWS\system32> get-module -listavailable Verzeichnis: C:\Program Files\WindowsPowerShell\Modules ModuleType Version Name

在PowerShell中加载MicrosoftTeams模块时,我确实遇到了问题。我下载并导入了具有AllSigned授权的模块(无错误):

检查模块是否正确加载,我还打印了可用模块,显示当前版本号:

PS C:\WINDOWS\system32> get-module -listavailable


    Verzeichnis: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}
Binary     1.1.4      MicrosoftTeams                      {Add-TeamUser, Connect-MicrosoftTeams, Disconnect-Microsof...
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-Packa...
Script     3.4.0      Pester                              {Describe, Context, It, Should...}
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remov...
现在,我想使用cmdlet
connect-MicrosoftTeams
连接到团队,该cmdlet被明确列为此导入模块中导出的cmdlet之一。但不知何故,PowerShell找不到以下命令:

PS C:\WINDOWS\system32> Connect-MicrosoftTeams
Connect-MicrosoftTeams : Die Benennung "Connect-MicrosoftTeams" wurde nicht als Name eines Cmdlet, einer Funktion,
einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der
Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1
+ Connect-MicrosoftTeams
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Connect-MicrosoftTeams:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
[请原谅,德语是这样写的:该名称未被识别为cmdlet或函数名。但如果使用PS,您可能知道该消息]


现在,我的问题是:如何让PS识别命令,如何找出错误所在?是否有命令列出当前正在运行的脚本和可用的命令?或者是否有可能强制执行脚本?

我可以看到输出显示您已成功安装模块。然而,它似乎有一些问题。我建议您重新安装它,看看它是如何运行的:

  • 以管理员身份运行Windows PowerShell
  • 运行命令卸载模块MicrosoftTeam,关闭PowerShell并重新打开新的 提升的PowerShell会话
  • 运行命令安装模块MicrosoftTeam,相关文档。
  • 成功安装后,请关闭PowerShell并以管理员身份重新打开新的提升PowerShell会话,再次运行连接MicrosoftTeam,然后查看它现在是否工作。如果同样的问题仍然存在,请附上整个输出的屏幕截图以供进一步检查。

    我必须安装“Skype for Business Online,Windows PowerShell模块”才能连接到Microsoft团队

    非常感谢!卸载并重新安装显然做到了这一点。我现在可以登录了。感谢您接受我的回答,这将帮助社区中有类似问题的其他人。您能抽出一分钟时间通过点击让我们知道我们做了什么吗?
    PS C:\WINDOWS\system32> Connect-MicrosoftTeams
    Connect-MicrosoftTeams : Die Benennung "Connect-MicrosoftTeams" wurde nicht als Name eines Cmdlet, einer Funktion,
    einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der
    Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
    In Zeile:1 Zeichen:1
    + Connect-MicrosoftTeams
    + ~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Connect-MicrosoftTeams:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException