Skype for Business オンライン コネクタから Teams PowerShell モジュールへの移行
Teams PowerShell モジュールには、PowerShell コマンド ラインから直接 Teams を管理するためのコマンドレットの完全なセットが用意されています。 管理者は、Teams の管理に Skype For Business Online コネクタを必要としません。
注意
Teams 管理者は、2021 年 3 月 16 日付のメッセージ センター投稿 (MC244740) を通じて通知されました。MC250940、2021 年 4 月 16 日付) に変更されます。
移行方法
Skype for Business オンライン コネクタから Teams PowerShell モジュールへの移行は簡単で簡単です。 次の手順では、この移行を行う方法について説明します。
最新の Teams PowerShell モジュールをインストールします。 手順については、「 Microsoft Teams PowerShell のインストール」を参照してください。
Skype For Business Online コネクタをアンインストールします。 アンインストールするには、コントロール パネルで [プログラムと機能] に移動し、[Skype for Business オンライン]、[Windows PowerShell モジュール] の順に選択し、[アンインストール] を選択します。
PowerShell スクリプトで、
Import-Module
で参照されているモジュール名を から変更します。SkypeOnlineConnector
またはMicrosoftTeams
にLyncOnlineConnector
します。たとえば、
Import-Module -Name SkypeOnlineConnector
をImport-Module -Name MicrosoftTeams
に変更します。Teams PowerShell モジュール 2.0 以降を使用する場合は、
New-CsOnlineSession
を参照するスクリプトをConnect-MicrosoftTeams
に更新します。Import-PsSession
は、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
関連項目
PowerShell Microsoft Teamsインストールする
Teams PowerShell を使用して Teams を管理する