Skip to content

Commit ccfa749

Browse files
authored
Merge pull request MicrosoftDocs#6046 from get-itips/patch-224
Proposing adding example
2 parents 3821855 + 22a3d6a commit ccfa749

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

skype/skype-ps/skype/Get-CsOnlineUser.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ The command shown in Example 5 returns information for all the online users assi
9191
To accomplish the task, the command includes the Filter parameter along with the filter value {TenantId -eq "bf19b7db-6960-41e5-a139-2aa373474354"}.
9292
This filter limits the returned data to online users assigned to the tenant "bf19b7db-6960-41e5-a139-2aa373474354".
9393

94+
### -------------------------- Example 6 --------------------------
95+
```
96+
PS C:\> $MeetingPolicy="Kiosk"
97+
PS C:\> $filterString = 'TeamsMeetingPolicy -eq "{0}"' -f $MeetingPolicy
98+
PS C:\> Get-CsOnlineUser -Filter $filterString
99+
```
100+
101+
The commands shown in Example 6 filters all the online users with a certain TeamsMeetingPolicy assigned using a variable as filter input.
102+
To accomplish the task, the filter string is first constructed and resolved locally and then used by the Get-CsOnlineUser cmdlet.
103+
104+
94105

95106
## PARAMETERS
96107

0 commit comments

Comments
 (0)