Skip to content

Commit 06eaa23

Browse files
authored
Merge pull request #10272 from JensTrier/JensUpdate1
Added more examples and explanations
2 parents 7e2a88b + d20027c commit 06eaa23

6 files changed

+53
-36
lines changed
Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
external help file: Microsoft.Rtc.Management.Hosted.dll-help.xml
33
online version: https://learn.microsoft.com/powershell/module/skype/get-csonlinedialoutpolicy
4-
applicable: Skype for Business Online
4+
applicable: Microsoft Teams
55
title: Get-CsOnlineDialOutPolicy
66
schema: 2.0.0
77
manager: bulenteg
8-
author: tomkau
9-
ms.author: tomkau
8+
author: jenstrier
9+
ms.author: jenstr
1010
ms.reviewer:
1111
---
1212

@@ -19,39 +19,40 @@ Use the `Get-CsOnlineDialOutPolicy` cmdlet to get all the available outbound cal
1919

2020
### Identity (Default)
2121
```
22-
Get-CsOnlineDialOutPolicy [[-Identity] <XdsIdentity>] [-LocalStore] [<CommonParameters>]
22+
Get-CsOnlineDialOutPolicy [[-Identity] <string>] [<CommonParameters>]
2323
```
2424

2525
### Filter
2626
```
27-
Get-CsOnlineDialOutPolicy [-Filter <String>] [-LocalStore] [<CommonParameters>]
27+
Get-CsOnlineDialOutPolicy [-Filter <string>] [<CommonParameters>]
2828
```
2929

3030
## DESCRIPTION
31-
In Skype for Business Online, outbound calling restriction policies are used to restrict the type of audio conferencing and end user PSTN calls that can be made by users in your organization.
32-
To get all the available policies in your organization run `Get-CSOnlineDialOutPolicy`.
31+
In Microsoft Teams, outbound calling restriction policies are used to restrict the type of audio conferencing and end user PSTN calls that can be made by users in your organization. The policies apply to all the different PSTN connectivity options for Microsoft Teams; Calling Plan, Direct Routing, and Operator Connect.
32+
33+
To get all the available policies in your organization run `Get-CsOnlineDialOutPolicy`.
3334
To assign one of these policies to a user run `Grant-CsDialoutPolicy`.
3435

3536
## EXAMPLES
3637

3738
### Example 1
3839
```powershell
39-
PS C:\> Get-CSOnlineDialOutPolicy
40+
Get-CsOnlineDialOutPolicy
4041
```
4142

42-
In Example 1, `Get-CSOnlineDialOutPolicy` is called without any additional parameters; this returns a collection of all the outbound calling restriction policies configured for use in your organization.
43+
In Example 1, `Get-CsOnlineDialOutPolicy` is called without any additional parameters; this returns a collection of all the outbound calling restriction policies configured for use in your organization.
4344

4445
### Example 2
4546
```powershell
46-
PS C:\> Get-CSOnlineDialOutPolicy -Identity DialoutCPCandPSTNDisabled
47+
Get-CsOnlineDialOutPolicy -Identity DialoutCPCandPSTNDisabled
4748
```
4849

49-
In Example 2, `Get-CSOnlineDialOutPolicy` is used to return the per-user outbound calling restriction policy that has an Identity DialoutCPCandPSTNDisabled. Because identities are unique, this command will never return more than one item.
50+
In Example 2, `Get-CsOnlineDialOutPolicy` is used to return the per-user outbound calling restriction policy that has an Identity DialoutCPCandPSTNDisabled. Because identities are unique, this command will never return more than one item.
5051

5152
## PARAMETERS
5253

5354
### -Filter
54-
Enables you to use wildcard characters when indicating the policy (or policies) to be returned. To return a collection of all the per-user policies, use this syntax: -Filter "tag:\*".
55+
Enables you to use wildcard characters when indicating the policy (or policies) to be returned. To return a collection of all the per-user policies, use this syntax: -Filter "tag:*".
5556

5657
```yaml
5758
Type: String
@@ -71,7 +72,7 @@ Unique identifier of the outbound calling restriction policy to be returned. To
7172
If this parameter is omitted, then all the outbound calling restriction policies configured for use in your tenant will be returned.
7273
7374
```yaml
74-
Type: XdsIdentity
75+
Type: String
7576
Parameter Sets: Identity
7677
Aliases:
7778

@@ -82,21 +83,6 @@ Accept pipeline input: False
8283
Accept wildcard characters: False
8384
```
8485
85-
### -LocalStore
86-
This parameter is reserved for internal Microsoft use.
87-
88-
```yaml
89-
Type: SwitchParameter
90-
Parameter Sets: (All)
91-
Aliases:
92-
93-
Required: False
94-
Position: Named
95-
Default value: None
96-
Accept pipeline input: False
97-
Accept wildcard characters: False
98-
```
99-
10086
### CommonParameters
10187
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
10288
For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
@@ -112,4 +98,4 @@ For more information, see about_CommonParameters (https://go.microsoft.com/fwlin
11298
## NOTES
11399
114100
## RELATED LINKS
115-
[Grant-CsDialoutPolicy](https://learn.microsoft.com/powershell/module/skype/grant-csdialoutpolicy)
101+
[Grant-CsDialoutPolicy](grant-csdialoutpolicy.md)

skype/skype-ps/skype/Grant-CsDialoutPolicy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ Grant-CsDialoutPolicy [-Group] <string> [[-PolicyName] <string>] [-PassThru] [-R
3333
```
3434

3535
## DESCRIPTION
36-
In Skype for Business Online and Microsoft Teams, outbound calling restriction policies are used to restrict the type of audio conferencing and end user PSTN calls that can be made by users in your organization.
36+
In Microsoft Teams, outbound calling restriction policies are used to restrict the type of audio conferencing and end user PSTN calls that can be made by users in your organization. The policies apply to all the different PSTN connectivity options for Microsoft Teams; Calling Plan, Direct Routing, and Operator Connect.
37+
3738
To get all the available policies in your organization run `Get-CsOnlineDialOutPolicy`.
3839

3940
## EXAMPLES

skype/skype-ps/skype/Grant-CsTeamsEmergencyCallRoutingPolicy.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,19 @@ This cmdlet assigns a Teams Emergency Call Routing policy to a user, a group of
4343

4444
### Example 1
4545
```powershell
46-
PS C:> Grant-CsTeamsEmergencyCallRoutingPolicy -Identity user1 -PolicyName TestECRP
46+
Grant-CsTeamsEmergencyCallRoutingPolicy -Identity user1 -PolicyName Test
4747
```
4848

49-
This example assigns a Teams Emergency Call Routing policy(TestECRP) to a user(user1)
49+
This example assigns a Teams Emergency Call Routing policy (Test) to a user (user1).
50+
51+
52+
### Example 2
53+
```powershell
54+
Grant-CsTeamsEmergencyCallRoutingPolicy -Group [email protected] -Rank 10 -PolicyName Test
55+
```
56+
57+
This example assigns the Teams Emergency Call Routing policy (Test) to the members of the group [email protected].
58+
5059

5160
## PARAMETERS
5261

skype/skype-ps/skype/New-CsTeamsEmergencyCallRoutingPolicy.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This cmdlet creates a new Teams Emergency Call Routing policy with one or more e
3030
### Example 1
3131
```powershell
3232
$en1 = New-CsTeamsEmergencyNumber -EmergencyDialString "911" -EmergencyDialMask "933" -OnlinePSTNUsage "USE911"
33-
New-CsTeamsEmergencyCallRoutingPolicy -Identity "testecrp" -EmergencyNumbers @{add=$en1} -AllowEnhancedEmergencyServices:$true -Description "test"
33+
New-CsTeamsEmergencyCallRoutingPolicy -Identity "Test" -EmergencyNumbers @{add=$en1} -AllowEnhancedEmergencyServices:$true -Description "test"
3434
```
3535

3636
This example first creates a new Teams emergency number object and then creates a Teams Emergency Call Routing policy with this emergency number object.
@@ -149,4 +149,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
149149
150150
[Remove-CsTeamsEmergencyCallRoutingPolicy](Remove-CsTeamsEmergencyCallRoutingPolicy.md)
151151
152+
[Get-CsTeamsEmergencyCallRoutingPolicy](Get-CsTeamsEmergencyCallRoutingPolicy.md)
153+
152154
[New-CsTeamsEmergencyNumber](New-CsTeamsEmergencyNumber.md)

skype/skype-ps/skype/Remove-CsTeamsEmergencyCallRoutingPolicy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ This cmdlet removes an existing Teams Emergency Call Routing policy instance.
2828

2929
### Example 1
3030
```powershell
31-
Remove-CsTeamsEmergencyCallRoutingPolicy -Identity TestECRP
31+
Remove-CsTeamsEmergencyCallRoutingPolicy -Identity Test
3232
```
3333

34-
This example removes Teams Emergency Call Routing policy with identity TestECRP.
34+
This example removes Teams Emergency Call Routing policy with identity Test.
3535

3636
### Example 2
3737
```powershell

skype/skype-ps/skype/Set-CsTeamsEmergencyCallRoutingPolicy.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,28 @@ This cmdlet modifies an existing Teams Emergency Call Routing Policy. Teams Emer
2929

3030
### Example 1
3131
```powershell
32-
Set-CsTeamsEmergencyCallRoutingPolicy -Identity "testecrp" -AllowEnhancedEmergencyServices:$false -Description "test"
32+
Set-CsTeamsEmergencyCallRoutingPolicy -Identity "Test" -AllowEnhancedEmergencyServices:$false -Description "test"
3333
```
3434

3535
This example modifies an existing Teams Emergency Call Routing Policy.
3636

37+
### Example 2
38+
```powershell
39+
$en1 = New-CsTeamsEmergencyNumber -EmergencyDialString "911" -EmergencyDialMask "933" -OnlinePSTNUsage "USE911"
40+
$en2 = New-CsTeamsEmergencyNumber -EmergencyDialString "112" -EmergencyDialMask "9112" -OnlinePSTNUsage "DKE911"
41+
Set-CsTeamsEmergencyCallRoutingPolicy -Identity "Test" -EmergencyNumbers @{add=$en1,$en2}
42+
```
43+
44+
This example first creates new Teams emergency number objects and then adds these Teams emergency numbers to an existing Teams Emergency Call Routing policy.
45+
46+
### Example 3
47+
```powershell
48+
$en1 = New-CsTeamsEmergencyNumber -EmergencyDialString "112" -EmergencyDialMask "9112" -OnlinePSTNUsage "DKE911"
49+
Set-CsTeamsEmergencyCallRoutingPolicy -Identity "Test" -EmergencyNumbers @{remove=$en1}
50+
```
51+
52+
This example first creates a new Teams emergency number object and then removes that Teams emergency number from an existing Teams Emergency Call Routing policy.
53+
3754
## PARAMETERS
3855

3956
### -AllowEnhancedEmergencyServices
@@ -143,4 +160,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
143160
144161
[Remove-CsTeamsEmergencyCallRoutingPolicy](Remove-CsTeamsEmergencyCallRoutingPolicy.md)
145162
163+
[Get-CsTeamsEmergencyCallRoutingPolicy](Get-CsTeamsEmergencyCallRoutingPolicy.md)
164+
146165
[New-CsTeamsEmergencyNumber](New-CsTeamsEmergencyNumber.md)

0 commit comments

Comments
 (0)