We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d1779c + d001a30 commit f0a2fe6Copy full SHA for f0a2fe6
skype/skype-ps/skype/Grant-CsTeamsMessagingPolicy.md
@@ -41,6 +41,13 @@ PS C:\> Grant-CsTeamsMessagingPolicy -identity "Ken Myer" -PolicyName StudentMes
41
42
In this example, a user with identity "Ken Myer" is being assigned the StudentMessagingPolicy
43
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
51
## PARAMETERS
52
53
### -Confirm
0 commit comments