Export-AdfsWebContent
Export-AdfsWebContent
Exports properties of all web content objects in a specific locale to a specified file.
Syntax
Parameter Set: Default
Export-AdfsWebContent [[-Locale] <CultureInfo> ] -FilePath <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Export-AdfsWebContent cmdlet exports properties of all web content objects in a specific locale, including global and relying party web contents, to a specified file. If you do not specify a locale, the cmdlet exports the web content of the invariant locale. The Set-AdfsGlobalWebContent and Set-AdfsRelyingPartyWebContent cmdlets add customized web content.
Use this cmdlet to implement localization of custom messages for the Active Directory Federation Services (AD FS) sign-in experience. Export the web content to a .resx file, localize the file, and then import the localized .resx file by using the Import-AdfsWebContent.
Parameters
-FilePath<String>
Specifies a file path. The cmdlet exports properties of web content objects to 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 exports 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: Export web content for the invariant locale
This command exports all the customized web content for the invariant locale to the specified file.
PS C:\> Export-AdfsWebContent -FilePath "C:\WebContent\Invariant.resx"
Example 2: Export web content for the a specified localespecified
This command exports all the customized web content for the en-us locale to the specified file.
PS C:\> Export-AdfsWebContent -Locale en-us -FilePath "C:\WebContent\EnUs.resx"