Import-AdfsWebContent

Import-AdfsWebContent is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.

Synopsis

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

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
Specifies a file path. The cmdlet imports properties from the file that you specify.

    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.

    Required?                    false
    Position?                    1
    Default value                none
    Accept pipeline input?       True (ByValue)
    Accept wildcard characters?  false

-Confirm <SwitchParameter>
    Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.

    Required?                    false
    Position?                    named
    Default value                false
    Accept pipeline input?       false
    Accept wildcard characters?  false

-WhatIf <SwitchParameter>
    Shows what would happen if the cmdlet runs. The cmdlet is not run.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

Syntax

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

————————–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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Import-AdfsWebContent

Get-Command Import-AdfsWebContent powershell script command cmdlet adfs

You can also read about

  • Export-AdfsWebContent

To know more PowerShell cmdlets(Commands) on Active Directory Federation Services(ADFS) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *