Set-AdfsWebConfig

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

Synopsis

Modifies web customization configuration settings.

Description

The Set-AdfsWebConfig cmdlet modifies web customization configuration settings. These settings impact any protocol that Active Directory Federation Services (AD FS) supports where a web browser facilitates token requests for home realm discovery (HRD) and authentication.

Parameters

-ActiveThemeName
Specifies the name of a web theme to be set as the active web theme in the web customization configuration. To create a web theme, use the New-AdfsWebTheme cmdlet.

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

-CDCCookieReader <Uri>
    Specifies the Uniform Resource Identifier (URI) of the Common Domain Cookie (CDC) reader.

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

-CDCCookieWriter <Uri>
    Specifies the URI of the CDC writer.

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

-ContextCookieEnabled <Boolean>
    Indicates whether to enable the context cookie.

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

-HRDCookieEnabled <Boolean>
    Indicates whether to enable the HRD cookie. If you specify a value of $False, when AD FS has more than one claims provider trust enabled, end users must select the home realm in every application request.

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

-HRDCookieLifetime <Int32>
    Specifies the lifetime, in days, of an HRD cookie.

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

-PassThru <SwitchParameter>
    Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

    Required?                    false
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    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

Set-AdfsWebConfig [-ActiveThemeName <String>] [-CDCCookieReader <Uri>] [-CDCCookieWriter <Uri>] [-HRDCookieLifetime <Int32>] [-HRDCookieEnabled <Boolean>] [-ContextCookieEnabled <Boolean>] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

————-Example 1————-
Set customization configuration properties
PS C:> Set-AdfsWebConfig -ActiveThemeName “Default” -CDCCookieReader https://www.TOSSolution.com/reader.aspx -CDCCookieWriter https://www.TOSSolution.com/writer.aspx -ContextCookieEnabled $True -HRDCookieEnabled $True -HRDCookieLifetime 30
ActiveThemeName : Default
CDCCookieReader :
CDCCookieWriter :
HRDCookieLifetime : 30
HRDCookieEnabled : True
ContextCookieEnabled : True
This command sets properties in the web customization configuration settings.

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

Get-Command Set-AdfsWebConfig

Get-Command Set-AdfsWebConfig powershell script command cmdlet adfs

You can also read about

  • Get-AdfsWebConfig
  • New-AdfsWebTheme

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 *