使用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

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