Skip to content

Commit ef29c0e

Browse files
authored
Update Get-CsPhoneNumberAssignment.md
1 parent 66a5c3f commit ef29c0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,18 @@ Get-CsPhoneNumberAssignment -TelephoneNumberContain "524"
105105
```
106106
This example returns information about all phone numbers that contain the digits 524, including the phone number with extension 524 used in example 2.
107107

108+
### Example 8
109+
```powershell
110+
(Get-CsPhoneNumberAssignment | Where-Object {$_.NumberType.Contains('CallingPlan') -and $_.Capability.Contains('UserAssignment') -and ($_.PstnAssignmentStatus.Contains('UserAssigned') -or $_.PstnAssignmentStatus.Contains('Unassigned'))}).Count
111+
```
112+
This example returns the number of Calling Plan subscriber phone numbers that are either assigned or not assigned to users.
113+
114+
### Example 9
115+
```powershell
116+
(Get-CsPhoneNumberAssignment | Where-Object {!$_.NumberType.Contains('DirectRouting') -and $_.Capability.Contains('VoiceApplicationAssignment') -and $_.Capability.Contains('ConferenceAssignment')}).Count
117+
```
118+
This example returns the number of Calling Plan or Operator Connect service phone numbers that can be assigned to voice applications and conference bridges.
119+
108120
## PARAMETERS
109121

110122
### -ActivationState

0 commit comments

Comments
 (0)