Skip to content

Commit d1efdd5

Browse files
Update Grant-CsExternalAccessPolicy.md
removing non-functioning params
1 parent c663f51 commit d1efdd5

File tree

1 file changed

+10
-42
lines changed

1 file changed

+10
-42
lines changed

teams/teams-ps/teams/Grant-CsExternalAccessPolicy.md

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ This cmdlet was introduced in Lync Server 2010.
2222
## SYNTAX
2323

2424
### Identity (Default)
25-
```
25+
```powershell
2626
Grant-CsExternalAccessPolicy [<CommonParameters>]
2727
```
2828

2929
### GrantToUser
30-
```
30+
```powershell
3131
Grant-CsExternalAccessPolicy [-Identity] <String> [[-PolicyName] <String>] [<CommonParameters>]
3232
```
3333

3434
### GrantToGroup
35-
```
35+
```powershell
3636
Grant-CsExternalAccessPolicy [[-PolicyName] <String>] [-Group] <String> [-Rank] <Int32> [<CommonParameters>]
3737
```
3838

3939
### GrantToTenant
40-
```
40+
```powershell
4141
Grant-CsExternalAccessPolicy [[-PolicyName] <String>] [-Global] [-Force] [<CommonParameters>]
4242
```
4343

@@ -78,14 +78,14 @@ That's because the settings in the per-user policy take precedence.
7878
## EXAMPLES
7979

8080
### -------------------------- EXAMPLE 1 --------------------------
81-
```
81+
```powershell
8282
Grant-CsExternalAccessPolicy -Identity "Ken Myer" -PolicyName RedmondAccessPolicy
8383
```
8484

8585
Example 1 assigns the external access policy RedmondAccessPolicy to the user with the Active Directory display name Ken Myer.
8686

8787
### -------------------------- EXAMPLE 2 --------------------------
88-
```
88+
```powershell
8989
Get-CsUser -LdapFilter "l=Redmond" | Grant-CsExternalAccessPolicy -PolicyName RedmondAccessPolicy
9090
```
9191

@@ -94,7 +94,7 @@ To do this, the command first uses the Get-CsUser cmdlet and the LdapFilter para
9494
That collection is then piped to the Grant-CsExternalAccessPolicy cmdlet, which assigns the policy RedmondAccessPolicy to each user in the collection.
9595

9696
### -------------------------- EXAMPLE 3 --------------------------
97-
```
97+
```powershell
9898
Get-CsUser -LdapFilter "Title=Sales Representative" | Grant-CsExternalAccessPolicy -PolicyName SalesAccessPolicy
9999
```
100100

@@ -103,7 +103,7 @@ To perform this task, the command first uses the Get-CsUser cmdlet and the LdapF
103103
This filtered collection is then piped to the Grant-CsExternalAccessPolicy cmdlet, which assigns the policy SalesAccessPolicy to each user in the collection.
104104

105105
### -------------------------- EXAMPLE 4 --------------------------
106-
```
106+
```powershell
107107
Get-CsUser -Filter {ExternalAccessPolicy -eq $Null} | Grant-CsExternalAccessPolicy -PolicyName BasicAccessPolicy
108108
```
109109

@@ -112,7 +112,7 @@ The command shown in Example 4 assigns the external access policy BasicAccessPol
112112
By definition, ExternalAccessPolicy will be null only if users have not been assigned a per-user policy.
113113

114114
### -------------------------- EXAMPLE 5 --------------------------
115-
```
115+
```powershell
116116
Get-CsUser -OU "ou=US,dc=litwareinc,dc=com" | Grant-CsExternalAccessPolicy -PolicyName USAccessPolicy
117117
```
118118

@@ -121,7 +121,7 @@ The command starts off by calling the Get-CsUser cmdlet and the OU parameter; th
121121
The returned collection is then piped to the Grant-CsExternalAccessPolicy cmdlet, which assigns the policy USAccessPolicy to each user in the collection.
122122

123123
### -------------------------- EXAMPLE 6 --------------------------
124-
```
124+
```powershell
125125
Get-CsUser | Grant-CsExternalAccessPolicy -PolicyName $Null
126126
```
127127

@@ -206,38 +206,6 @@ Accept pipeline input: False
206206
Accept wildcard characters: False
207207
```
208208
209-
### -WhatIf
210-
Describes what would happen if you executed the command without actually executing the command.
211-
212-
```yaml
213-
Type: SwitchParameter
214-
Parameter Sets: (All)
215-
Aliases: wi
216-
Applicable: Microsoft Teams, Lync Server 2010, Lync Server 2013, Skype for Business Online, Skype for Business Server 2015, Skype for Business Server 2019
217-
218-
Required: False
219-
Position: Named
220-
Default value: None
221-
Accept pipeline input: False
222-
Accept wildcard characters: False
223-
```
224-
225-
### -Confirm
226-
Prompts you for confirmation before executing the command.
227-
228-
```yaml
229-
Type: SwitchParameter
230-
Parameter Sets: (All)
231-
Aliases: cf
232-
Applicable: Microsoft Teams, Lync Server 2010, Lync Server 2013, Skype for Business Online, Skype for Business Server 2015, Skype for Business Server 2019
233-
234-
Required: False
235-
Position: Named
236-
Default value: None
237-
Accept pipeline input: False
238-
Accept wildcard characters: False
239-
```
240-
241209
### -Tenant
242210
This parameter is reserved for internal Microsoft use.
243211

0 commit comments

Comments
 (0)