Set-AdfsWebConfig
Modifies web customization configuration settings.
Set-AdfsWebConfig
[-ActiveThemeName <String>]
[-CDCCookieReader <Uri>]
[-CDCCookieWriter <Uri>]
[-HRDCookieLifetime <Int32>]
[-HRDCookieEnabled <Boolean>]
[-ContextCookieEnabled <Boolean>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
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.
$pSSetAdfsWebConfigSplat = @{
ActiveThemeName = "Default"
CDCCookieReader = 'https://www.Contoso.com/reader.aspx'
CDCCookieWriter = 'https://www.Contoso.com/writer.aspx'
ContextCookieEnabled = $True
HRDCookieEnabled = $True
HRDCookieLifetime = 30
}
PSSet-AdfsWebConfig @pSSetAdfsWebConfigSplat
ActiveThemeName : Default
CDCCookieReader :
CDCCookieWriter :
HRDCookieLifetime : 30
HRDCookieEnabled : True
ContextCookieEnabled : True
This command sets properties in the web customization configuration settings.
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the Uniform Resource Identifier (URI) of the Common Domain Cookie (CDC) reader.
Type: | Uri |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the URI of the CDC writer.
Type: | Uri |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indicates whether to enable the context cookie.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
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.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the lifetime, in days, of an HRD cookie.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
None
None
By default, this cmdlet doesn't return any output.
AdfsWebConfig
When you use the PassThru parameter, this cmdlet returns an AdfsWebConfig object that represents the modified configuration settings.