Remove-CsPreMeetingConsent
Removes a pre-meeting consent configuration.
Syntax
Identity (Default)
Remove-CsPreMeetingConsent
[-Identity] <String>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ParentAndRelativeKey
Remove-CsPreMeetingConsent
-Id <String>
[-Force]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Before removing a configuration, review meeting policies that reference its ID and update their content settings as needed. For more information, see Set-CsTeamsMeetingPolicy.
Examples
Example 1: Remove a configuration
$consentId = '<consent-configuration-guid>'
Remove-CsPreMeetingConsent -Id $consentId
Get-CsPreMeetingConsent
Replace <consent-configuration-guid> with the ID of the unassigned configuration. After removing it, the example lists the remaining configurations so you can verify the removal.
Parameters
-Confirm
Prompts for confirmation before removing the configuration.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | cf |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Force
This switch doesn't override -Confirm or -WhatIf.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Id
The ID of the configuration to remove.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
ParentAndRelativeKey
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Identity
The identity of the configuration to remove. You can get this value from the Identity property returned by Get-CsPreMeetingConsent.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Identity
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-WhatIf
Shows what would happen without removing the configuration.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | wi |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
System.Object
You can pipe an object that has an Identity property to this cmdlet.