Skip to content

Commit 5d0a929

Browse files
authored
Add files via upload
0 parents  commit 5d0a929

2 files changed

+43
-0
lines changed

Get-AllTeamsMembersEmails.ps1

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)