Skip to content

Commit 8516f92

Browse files
authored
Merge branch 'master' into chrisda
2 parents 80bd267 + 3196308 commit 8516f92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

exchange/exchange-ps/exchange/Add-UnifiedGroupLinks.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ Add-UnifiedGroupLinks -Identity "Legal Department" -LinkType Members -Links chri
4545

4646
This example adds members [email protected] and [email protected] to the Microsoft 365 Group named Legal Department.
4747

48+
### Example 2
49+
```powershell
50+
$users= Get-User -ResultSize unlimited | where {$_.Department -eq "Marketing" -AND $_.RecipientType -eq "UserMailbox"}
51+
Add-UnifiedGroupLinks -Identity Marketing -LinkType members -Links ($users.UserPrincipalName)
52+
```
53+
54+
This example shows how to add bulk members to a Microsoft 365 Group. Mailboxes where the Department attribute is "Marketing" are added to Microsoft 365 Group named Marketing.
55+
4856
## PARAMETERS
4957

5058
### -Identity

0 commit comments

Comments
 (0)