capntack revisou este gist 2 weeks ago. Ir para a revisão
1 file changed, 1 insertion, 1 deletion
audit-teams-group.ps1
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | Connect-ExchangeOnline | |
| 2 | - | :: Enter the email address to connect with below | |
| 2 | + | # Enter the email address to connect with below | |
| 3 | 3 | $Email = | |
| 4 | 4 | $Group = Get-UnifiedGroup -Identity $Email | |
| 5 | 5 | $GroupId = $Group.ExternalDirectoryObjectId | |
capntack revisou este gist 2 weeks ago. Ir para a revisão
1 file changed, 11 insertions
audit-teams-group.ps1(arquivo criado)
| @@ -0,0 +1,11 @@ | |||
| 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 | |