File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ <#
2
+ . SYNOPSIS
3
+ Get a simple list containing all email address of all members of a Microsoft Teams team. Even guest ones
4
+ . DESCRIPTION
5
+ Exchange Online PowerShell Module required,
6
+ source https://github.com/spgoodman/p365scripts/blob/master/Export-O365Groups.ps1
7
+ . NOTES
8
+ File Name : Get-AllTeamsMembersEmails.ps1
9
+ Author : Sébastien Paulet (SPT Conseil)
10
+ Prerequisite : PowerShell V5.1 and Exchange Online PowerShell Module
11
+ . PARAMETER GroupName
12
+ Teams name
13
+ . EXAMPLE
14
+ .\Get-AllTeamsMembersEmails.ps1 -GroupName "[Public]aOS Solidarité Calédonie 2020"
15
+ #>
16
+ param (
17
+ [Parameter (Mandatory = $true )]
18
+ [String ]$GroupName = " [Public]aOS Solidarité Calédonie 2020"
19
+ )
20
+ Connect-EXOPSSession
21
+ $Group = Get-UnifiedGroup - ResultSize Unlimited - Identity $GroupName
22
+ $Members = Get-UnifiedGroupLinks - Identity $Group.Identity - LinkType Members - ResultSize Unlimited
23
+ $Members | select PrimarySmtpAddress
Original file line number Diff line number Diff line change
1
+ <#
2
+ . SYNOPSIS
3
+ Enable Sensitivity Labels for Teams on your Office 365 tenant
4
+ . DESCRIPTION
5
+ Azure AD Preview PowerShell Module required,
6
+ source https://docs.microsoft.com/fr-fr/azure/active-directory/users-groups-roles/groups-assign-sensitivity-labels
7
+ . NOTES
8
+ File Name : Set-EnableSensitivityLabelsOnTeams.ps1
9
+ Author : Sébastien Paulet (SPT Conseil)
10
+ Prerequisite : PowerShell V5.1 and AzureADPreview
11
+
12
+ . EXAMPLE
13
+ .\Set-EnableSensitivityLabelsOnTeams.ps1
14
+ #>
15
+ Import-Module AzureADPreview
16
+ Connect-AzureAD
17
+ $Setting = Get-AzureADDirectorySetting - Id (Get-AzureADDirectorySetting | Where-Object - Property DisplayName - Value " Group.Unified" -EQ ).id
18
+ $Setting.Values
19
+ $Setting [" EnableMIPLabels" ] = " True"
20
+ Set-AzureADDirectorySetting - Id $Setting.Id - DirectorySetting $Setting
You can’t perform that action at this time.
0 commit comments