Skip to content

Commit f5cd156

Browse files
authored
Merge pull request #12618 from pavellatif/main
Update Get-CsPhoneNumberAssignment.md
2 parents ae0b380 + dedd38b commit f5cd156

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

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

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,29 +126,17 @@ This example returns information about all phone numbers that contain the digits
126126

127127
### Example 8
128128
```powershell
129-
(Get-CsPhoneNumberAssignment | Where-Object {$_.NumberType.Contains('CallingPlan') -and $_.Capability.Contains('UserAssignment') -and ($_.PstnAssignmentStatus.Contains('UserAssigned') -or $_.PstnAssignmentStatus.Contains('Unassigned'))}).Count
130-
```
131-
This example returns the number of Calling Plan subscriber phone numbers that are either assigned or not assigned to users.
132-
133-
### Example 9
134-
```powershell
135-
Get-CsPhoneNumberAssignment -Top (50::500)
136-
```
137-
This example returns all phone numbers in the record between sequence 50 to 500. This parameter can be used to get upto a maximum 1000 results at a time.
138-
139-
### Example 10
140-
```powershell
141129
Get-CsPhoneNumberAssignment -Skip 1000 -Top 1000
142130
```
143131
This example returns all phone numbers sequenced between 1001 to 2000 in the record of phone numbers.
144132

145-
### Example 11
133+
### Example 9
146134
```powershell
147135
Get-CsPhoneNumberAssignment -AssignedPstnTargetId 'TeamsSharedCallingRoutingPolicy|Tag:SC1'
148136
```
149137
This example returns all phone numbers assigned as emergency numbers in the Teams shared calling routing policy instance SC1.
150138

151-
### Example 12
139+
### Example 10
152140
```powershell
153141
Get-CsPhoneNumberAssignment -TelephoneNumber "+12065551000;ext=524"
154142
```
@@ -176,7 +164,7 @@ ReverseNumberLookup : {SkipInternalVoip}
176164
```
177165
This example displays when SkipInternalVoip option is turned on for a number.
178166

179-
### Example 13
167+
### Example 11
180168
```powershell
181169
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -eq '+12065551000'"
182170
```
@@ -204,7 +192,7 @@ ReverseNumberLookup : {}
204192
```
205193
This example shows a way to use -Filter parameter to display information of a specific number.
206194

207-
### Example 14
195+
### Example 12
208196
```powershell
209197
Get-CsPhoneNumberAssignment -Filter "TelephoneNumber -like '+12065551000' -and NumberType -eq 'DirectRouting'"
210198
```

0 commit comments

Comments
 (0)