简体   繁体   中英

PowerShell cmdlets to get Microsoft Teams usage report are not working, why?

I am trying to get Microsoft Teams usage report using PowerShell. To do so, initially I am connecting to Teams with "Connect-MicrosoftTeams", then to see the cmdlets i executed the command "Get-Command -Module MicrosoftTeams". Both cmdlets are working fine. But after this I am not able to proceed further, when I am trying to get GroupId using "Get-Team" , i am getting nothing. When I executed the Get-Team command it took 3 minutes 8 Second & 386 milliseconds and then the cursor got return without any output nor any error message(please see the screenshotPowerShell cmdlet 输出 ). None of the cmdlets with "Get-* " is working.for example: get-Team -displayName, Get-Team -user none is working.

Please help.

Are you connecting with an admin account that has access to read from the administrative information of Microsoft Teams?

Additionally, make sure to install the module with the flag -AllowClobber if you haven't, it caused me some issues initially.

Personally I was able to pull the teams on our infrastructure that I had access to manage: 团队计数控制台

团队数量 O365

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM