Skip to content

Commit f0a2fe6

Browse files
committed
Merge branch 'master' into chrisda
2 parents 0d1779c + d001a30 commit f0a2fe6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

skype/skype-ps/skype/Grant-CsTeamsMessagingPolicy.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ PS C:\> Grant-CsTeamsMessagingPolicy -identity "Ken Myer" -PolicyName StudentMes
4141

4242
In this example, a user with identity "Ken Myer" is being assigned the StudentMessagingPolicy
4343

44+
### Example 2
45+
```powershell
46+
PS C:\> Get-CsOnlineUser -Filter {Department -eq 'Executive Management'} | Grant-CsTeamsMessagingPolicy -PolicyName "ExecutivesPolicy"
47+
```
48+
49+
In this example, the ExecutivesPolicy is being assigned to a whole department by piping the result of Get-CsOnlineUser cmdlet
50+
4451
## PARAMETERS
4552

4653
### -Confirm

0 commit comments

Comments
 (0)