編集

次の方法で共有


Import-AdfsWebContent

Imports properties from a resource file into global and relying party web content objects.

Syntax

Default (Default)

Import-AdfsWebContent
    [[-Locale] <CultureInfo>]
    -FilePath <String>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Import-AdfsWebContent cmdlet imports properties from a .resx resource file into global and relying party web content objects. If no corresponding web content object exists, the cmdlet creates an object. If you do not specify a locale, the cmdlet imports web content for the invariant locale.

Use this cmdlet to implement localization of custom messages for the Active Directory Federation Services (AD FS) sign-in experience. Export the web content by using the Export-AdfsWebContent cmdlet to a .resx file, localize the file, and then import the localized .resx file.

Examples

Example 1: Import web content for the invariant locale

PS C:\> Import-AdfsWebContent -FilePath "C:\WebContent\Invariant.resx"

This command imports the customized web content for the invariant locale into the AD FS configuration store from the specified file.

Example 2: Import web content for a specified locale

PS C:\> Import-AdfsWebContent -Locale en-us -FilePath "C:\WebContent\EnUs.resx"

This command imports the customized web content for the en-us locale into the AD FS configuration store from the specified file.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
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

-FilePath

Specifies a file path. The cmdlet imports properties from the file that you specify.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Locale

Specifies a locale. The cmdlet imports properties of web content objects for the local that you specify.

Parameter properties

Type:CultureInfo
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
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.