Skip to content

Commit f1882b9

Browse files
authored
Merge pull request MicrosoftDocs#7516 from mibrest-MSFT/patch-3
Update Set-CsGroupPolicyAssignment.md
2 parents 25eca3f + 2064313 commit f1882b9

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

teams/teams-ps/teams/Set-CsGroupPolicyAssignment.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,29 @@ ms.reviewer:
1212

1313
## SYNOPSIS
1414

15-
**Note:** The cmdlet Set-CsGroupPolicyAssignment will be available soon. In the meantime, to change a group policy assignment you can first remove the current policy assignment from the group and then add a new policy assignment.
15+
> [!NOTE]
16+
> The cmdlet Set-CsGroupPolicyAssignment will be available soon. In the meantime, to change a group policy assignment you can first remove the current policy assignment from the group and then add a new policy assignment.
1617
18+
<br/>
1719
This cmdlet is used to update a group policy assignment.
1820

1921
## SYNTAX
2022

21-
```
23+
```powershell
2224
Set-CsGroupPolicyAssignment -GroupId <String> -PolicyType <String> [-PolicyName <String>] [-Rank <Int>]
2325
```
2426

2527
## DESCRIPTION
26-
This cmdlet will update the policy assignment for a group for a given policy type. The policy instance and/or policy rank can be updated. Refer to [New-CsGroupPolicyAssignment]() for more details about rank.
28+
29+
This cmdlet will update the policy assignment for a group for a given policy type. The policy instance and/or policy rank can be updated. Refer to [New-CsGroupPolicyAssignment](New-CsGroupPolicyAssignment.md) for more details about rank.
2730

2831
## EXAMPLES
2932

3033
### Example 1
34+
3135
In this example, a new policy of the same type is set without changing the rank.
3236

33-
```
37+
```powershell
3438
Get-CsGroupPolicyAssignment -PolicyType TeamsMeetingPolicy
3539
3640
GroupId PolicyType PolicyName Rank CreatedTime CreatedBy
@@ -49,9 +53,10 @@ d8ebfa45-0f28-4d2d-9bcc-b158a49e2d17 TeamsMeetingPolicy AllOn 1 10/29/20
4953
```
5054

5155
### Example 2
56+
5257
In this example, the rank of the policy assignment is updated.
5358

54-
```
59+
```powershell
5560
Set-CsGroupPolicyAssignment -GroupId 566b8d39-5c5c-4aaa-bc07-4f36278a1b38 -PolicyType TeamsMeetingPolicy -Rank 1
5661
5762
Get-CsGroupPolicyAssignment -PolicyType TeamsMeetingPolicy
@@ -65,6 +70,7 @@ d8ebfa45-0f28-4d2d-9bcc-b158a49e2d17 TeamsMeetingPolicy AllOn 2 10/29/20
6570
## PARAMETERS
6671

6772
### -GroupId
73+
6874
The ID of a batch policy assignment operation.
6975

7076
```yaml
@@ -80,6 +86,7 @@ Accept wildcard characters: False
8086
```
8187
8288
### -PolicyType
89+
8390
The type of the policy assigned.
8491
8592
```yaml
@@ -95,6 +102,7 @@ Accept wildcard characters: False
95102
```
96103
97104
### -PolicyName
105+
98106
The of the new policy to be assigned.
99107
100108
```yaml
@@ -110,6 +118,7 @@ Accept wildcard characters: False
110118
```
111119
112120
### -Rank
121+
113122
The new rank of the policy assignment, relative to other group policy assignments for the same policy type.
114123
115124
```yaml
@@ -125,6 +134,7 @@ Accept wildcard characters: False
125134
```
126135
127136
### CommonParameters
137+
128138
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
129139
For more information, see [About CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
130140

0 commit comments

Comments
 (0)