Import-AdfsWebContent
Import-AdfsWebContent
Imports properties from a resource file into global and relying party web content objects.
Syntax
Parameter Set: Default
Import-AdfsWebContent [[-Locale] <CultureInfo> ] -FilePath <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed 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.
Parameters
-FilePath<String>
Specifies a file path. The cmdlet imports properties from the file that you specify.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Locale<CultureInfo>
Specifies a locale. The cmdlet imports properties of web content objects for the local that you specify.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Import web content for the invariant locale
This command imports the customized web content for the invariant locale into the AD FS configuration store from the specified file.
PS C:\> Import-AdfsWebContent -FilePath "C:\WebContent\Invariant.resx"
Example 2: Import web content for a specified locale
This command imports the customized web content for the en-us locale into the AD FS configuration store from the specified file.
PS C:\> Import-AdfsWebContent -Locale en-us -FilePath "C:\WebContent\EnUs.resx"