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 モジュールへの移行は簡単で簡単です。 次の手順では、これを行う方法について説明します。
最新の Teams PowerShell モジュールをインストールします。 手順については、「Microsoft Teams PowerShell のインストール」を参照してください。
Skype For Business Online コネクタをアンインストールします。 これを行うには、コントロール パネルで[プログラムと機能] に移動し、[オンラインSkype for Business] を選択し、[モジュール] をWindows PowerShellして、[アンインストール] を選択します。
PowerShell スクリプトで、 から参照
Import-Module
されるモジュール名を変更します。SkypeOnlineConnector
またはLyncOnlineConnector
を に設定しますMicrosoftTeams
。たとえば、 を に変更
Import-Module -Name SkypeOnlineConnector
しますImport-Module -Name MicrosoftTeams
。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 を管理する