Skype for Business オンライン コネクタから Teams PowerShell モジュールへの移行

Teams PowerShell モジュールには、PowerShell コマンド ラインから直接 Teams を管理するためのコマンドレットの完全なセットが用意されています。 管理者は、Teams の管理に Skype For Business Online コネクタを必要としません。

注意

Teams 管理者は、メッセージ センターの投稿 (MC244740、2021 年 3 月 16 日付) を通じて通知されました。MC250940(2021 年 4 月 16 日付)

Teams PowerShell モジュールでは最新の認証が使用されますが、基本認証を許可するように基になる Windows リモート管理 (WinRM) クライアントを構成する必要があります。 基本的な認証で WinRM を有効にする方法については、「Windows PowerShellのダウンロードとインストール」を参照してください。

移行方法

Skype for Business オンライン コネクタから Teams PowerShell モジュールへの移行は簡単で簡単です。 次の手順では、これを行う方法について説明します。

  1. 最新の Teams PowerShell モジュールをインストールします。 手順については、「Microsoft Teams PowerShell のインストール」を参照してください。

  2. Skype For Business Online コネクタをアンインストールします。 これを行うには、コントロール パネルで[プログラムと機能] に移動し、[オンラインSkype for Business] を選択し、[モジュール] をWindows PowerShellして、[アンインストール] を選択します

  3. PowerShell スクリプトで、 から参照 Import-Module されるモジュール名を変更します。

    SkypeOnlineConnector または LyncOnlineConnector を に設定します MicrosoftTeams

    たとえば、 を に変更 Import-Module -Name SkypeOnlineConnector します Import-Module -Name MicrosoftTeams

  4. Teams PowerShell モジュール 2.0 以降を使用する場合は、 をConnect-MicrosoftTeams参照New-CsOnlineSessionするスクリプトを更新します。 Import-PsSessionは、を使用Connect-MicrosoftTeamsするときに暗黙的に行われるSkype for Businessオンライン リモート PowerShell セッションを確立するために必要ではなくなりました。

       # When using the Skype for Business online connector
    
         # Establishing a session
         Import-Module SkypeOnlineConnector [LyncOnlineConnector]
         $credential = Get-Credential
         $SkypeSession = New-CsOnlineSession -Credential $credential
         Import-Session $SkypeSession
    
         # Example getting tenant details
         Get-csTenant
    
         # Disconnecting and closing the Session 
         Get-PsSession $SkypeSession | Remove-PsSession
    
       # When using Teams PowerShell Module 2.0 or later
    
         # Establishing a session
         Import-Module MicrosoftTeams
         $credential = Get-Credential
         Connect-MicrosoftTeams -Credential $credential
    
         # Example getting tenant details
         Get-csTenant
    
         # Disconnecting and closing the Session  
         Disconnect-MicrosoftTeams
    

Teams PowerShell Microsoftインストールする

Teams PowerShell を使用して Teams を管理する

Teams PowerShell のリリース ノート

Microsoft Teams コマンドレット リファレンス

Skype for Business コマンドレット リファレンス