New-CsPreMeetingConsent

Creates a pre-meeting consent configuration with localized content.

Syntax

Identity

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

ParentAndRelativeKey

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

Description

Create each language entry with New-CsTeamsLocalizedContent, then pass the entries to New-CsPreMeetingConsent. A configuration can include up to five languages. Mark exactly one language as the default.

To reference the configuration from a meeting policy, use its ID as the -PreMeetingConsentContentIdentifier value for Set-CsTeamsMeetingPolicy. That cmdlet also documents the -EnablePreMeetingConsent setting.

Examples

Example 1: Create a configuration for two languages

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

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

$consent = New-CsPreMeetingConsent -LocalizedContent @($englishContent, $frenchContent)
$consent

This example creates a configuration with a generated ID, English as the default language, and French as an additional language. It displays the returned configuration.

Parameters

-Confirm

Prompts for confirmation before creating 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 to assign to the configuration. If you omit both -Id and -Identity, the cmdlet generates a GUID as a string.

Parameter properties

Type:String
Default value:A generated GUID string
Supports wildcards:False
DontShow:False

Parameter sets

ParentAndRelativeKey
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Identity

The identity to assign to the configuration. Use this parameter instead of -Id, not with it.

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

The localized entries to include in the configuration. Pass entries created by New-CsTeamsLocalizedContent.

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 creating 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

PreMeetingConsent