Set-CsPreMeetingConsent

Updates the localized content of a pre-meeting consent configuration.

Syntax

Identity (Default)

Set-CsPreMeetingConsent
    [-Identity] <String>
    [-LocalizedContent <PSListModifier[LocalizedContent]>]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ParentAndRelativeKey

Set-CsPreMeetingConsent
    -Id <String>
    [-LocalizedContent <PSListModifier[LocalizedContent]>]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Use Set-CsPreMeetingConsent to replace the existing collection of localized entries or add an entry to it. Create entries with New-CsTeamsLocalizedContent. A configuration can include up to five languages. Mark exactly one language as the default.

Examples

Example 1: Replace the localized content

$consentId = '<consent-configuration-guid>'

$englishContent = New-CsTeamsLocalizedContent `
    -LanguageId 'en-US' `
    -Title 'Review the meeting terms' `
    -Content 'Read and accept the meeting terms before joining.' `
    -IsDefault $true

$frenchContent = New-CsTeamsLocalizedContent `
    -LanguageId 'fr-FR' `
    -Title 'Consultez les conditions de la réunion' `
    -Content 'Lisez et acceptez les conditions avant de rejoindre la réunion.' `
    -IsDefault $false

Set-CsPreMeetingConsent -Id $consentId -LocalizedContent @($englishContent, $frenchContent)

Replace <consent-configuration-guid> with the identifier of an existing configuration. The example replaces its localized content with the English and French entries.

Example 2: Add a language

$consentId = '<consent-configuration-guid>'

$spanishContent = New-CsTeamsLocalizedContent `
    -LanguageId 'es-ES' `
    -Title 'Consentimiento requerido' `
    -Content 'Revise las condiciones de la reunión antes de unirse.' `
    -IsDefault $false

Set-CsPreMeetingConsent -Id $consentId -LocalizedContent @{ Add = @($spanishContent) }

Replace <consent-configuration-guid> with the ID of an existing configuration that doesn't already include Spanish and has room for another language. The example adds Spanish without replacing the existing entries.

Parameters

-Confirm

Prompts for confirmation before updating 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 update.

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 update. 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:False
Value from remaining arguments:False

-LocalizedContent

To replace the existing collection, pass the collection of entries to keep. To add an entry without replacing the collection, pass a hashtable with an Add key as shown in Example 2.

Parameter properties

Type:

PSListModifier[LocalizedContent]

Default value:None
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

-WhatIf

Shows what would happen without updating 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

None

Outputs

None