audit-teams-group.ps1
· 343 B · PowerShell
原始檔案
Connect-ExchangeOnline
:: Enter the email address to connect with below
$Email =
$Group = Get-UnifiedGroup -Identity $Email
$GroupId = $Group.ExternalDirectoryObjectId
$Group.ExternalDirectoryObjectId
Remove-Variable Group, GroupId
Import-Module MicrosoftTeams
Connect-MicrosoftTeams
Get-TeamChannel -GroupId $Group.ExternalDirectoryObjectId
| 1 | Connect-ExchangeOnline |
| 2 | :: Enter the email address to connect with below |
| 3 | $Email = |
| 4 | $Group = Get-UnifiedGroup -Identity $Email |
| 5 | $GroupId = $Group.ExternalDirectoryObjectId |
| 6 | $Group.ExternalDirectoryObjectId |
| 7 | Remove-Variable Group, GroupId |
| 8 | |
| 9 | Import-Module MicrosoftTeams |
| 10 | Connect-MicrosoftTeams |
| 11 | Get-TeamChannel -GroupId $Group.ExternalDirectoryObjectId |