Skip to content

Commit cf36e3f

Browse files
authored
Update Remove-CsTeamsMeetingTemplatePermissionPolicy.md
1 parent d24b733 commit cf36e3f

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

teams/teams-ps/teams/Remove-CsTeamsMeetingTemplatePermissionPolicy.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,29 @@ Deletes an instance of TeamsMeetingTemplatePermissionPolicy. The `Identity` para
2626
### Example 1
2727

2828
```powershell
29-
PS> Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Test_Policy
29+
Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Test_Policy
3030
```
3131

3232
Deletes a policy instance with the Identity *Test_Policy*.
3333

34+
### Example 2
35+
36+
Attempting to delete a policy instance that is currently assigned to users will result in an error. Remove the assignment before attempting to delete it.
37+
38+
```powershell
39+
Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Foobar
40+
```
41+
42+
```output
43+
Remove-CsTeamsMeetingTemplatePermissionPolicy : The policy "Foobar" is currently assigned to one or more users. Assign a different policy to the users before removing
44+
this one. Please refer to documentation. CorrelationId: 8698472b-f441-423b-8ee3-0469c7e07528
45+
At line:1 char:1
46+
+ Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Foobar
47+
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48+
+ CategoryInfo : NotSpecified: (:) [Remove-CsTeamsM...ermissionPolicy], PolicyRpException
49+
+ FullyQualifiedErrorId : ClientError,Microsoft.Teams.Policy.Administration.Cmdlets.Core.RemoveTeamsMeetingTemplatePermissionPolicyCmdlet
50+
```
51+
3452
## PARAMETERS
3553

3654
### -Identity
@@ -52,23 +70,6 @@ Accept wildcard characters: False
5270
### CommonParameters
5371
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
5472
55-
## NOTES
56-
57-
Attempting to delete a policy instance that is currently assigned to users will result in an error. Remove the assignment before attempting to delete it.
58-
59-
```powershell
60-
PS> Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Foobar
61-
```
62-
63-
```output
64-
Remove-CsTeamsMeetingTemplatePermissionPolicy : The policy "Foobar" is currently assigned to one or more users. Assign a different policy to the users before removing
65-
this one. Please refer to documentation. CorrelationId: 8698472b-f441-423b-8ee3-0469c7e07528
66-
At line:1 char:1
67-
+ Remove-CsTeamsMeetingTemplatePermissionPolicy -Identity Foobar
68-
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69-
+ CategoryInfo : NotSpecified: (:) [Remove-CsTeamsM...ermissionPolicy], PolicyRpException
70-
+ FullyQualifiedErrorId : ClientError,Microsoft.Teams.Policy.Administration.Cmdlets.Core.RemoveTeamsMeetingTemplatePermissionPolicyCmdlet
71-
```
7273
7374
## RELATED LINKS
7475
[Set-CsTeamsMeetingTemplatePermissionPolicy](Set-CsTeamsMeetingTemplatePermissionPolicy.md)
@@ -77,4 +78,4 @@ At line:1 char:1
7778
7879
[New-CsTeamsMeetingTemplatePermissionPolicy](New-CsTeamsMeetingTemplatePermissionPolicy.md)
7980
80-
[Grant-CsTeamsMeetingTemplatePermissionPolicy](Grant-CsTeamsMeetingTemplatePermissionPolicy.md)
81+
[Grant-CsTeamsMeetingTemplatePermissionPolicy](Grant-CsTeamsMeetingTemplatePermissionPolicy.md)

0 commit comments

Comments
 (0)