使用Powershell 登陸MS Teams admin Powershell


先安裝SkypeOnlineConnector, https://www.microsoft.com/en-us/download/details.aspx?id=39366


然後運行以下Powershell命令:

#解決mfa不彈出認證頁面的問題
#解決lyncdiscover在內網不解釋的問題。OverrideAdminDomain
$String = "password"
$username = "tangx@xxxxx.onmicrosoft.com"
$TenantDomain = "xxxx.onmicrosoft.com"
Import-Module SkypeOnlineConnector;$PWord = ConvertTo-SecureString -String $String -AsPlainText -Force;
$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $PWord;
$CSSession=New-CsOnlineSession -credential $Cred -OverrideAdminDomain $TenantDomain
Import-PSSession $cssession –AllowClobber


image


之後就可以使用命令進行Teams的管理

image

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章