Export-AdfsWebContent
Export-AdfsWebContent is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.
Synopsis
Exports properties of all web content objects in a specific locale to a specified file.
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
-Confirm <>
Required? false
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters?
-FilePath <string>
Required? true
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters?
-Locale <cultureinfo>
Required? false
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?
-WhatIf <>
Required? false
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters?
Syntax
Export-AdfsWebContent [[-Locale] <CultureInfo>] -FilePath <String> [-WhatIf] [-Confirm] [<CommonParameters>]
————————–Example 1————————–
Export web content for the invariant locale
PS C:\> Export-AdfsWebContent -FilePath “C:\WebFolder\Invariant.resx”
This command exports all the customized web content for the invariant locale to the specified file.
————————–Example 2————————–
Export web content for the a specified localespecified
PS C:\> Export-AdfsWebContent -Locale en-us -FilePath “C:\WebFolder\EnUs.resx”
This command exports all the customized web content for the en-us locale to the specified file.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Export-AdfsWebContent
You can also read about
- Import-AdfsWebContent