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
You can also read about
- Get-AdfsWebConfig
- New-AdfsWebTheme