Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The theme that is shipped out-of-the-box is called Default. You can export the default theme and use it so that you can start quickly. You can customize the appearance and behavior, which includes the layout by modifying the .css file, import and apply this new theme, and then you can use the customized appearance and behavior. Using the .css file also makes it easier to work with your web designers.
The following cmdlet creates a custom web theme, which duplicates the default web theme.
New-AdfsWebTheme âName custom âSourceName default
You can modify the .css file and configure the new web theme by using the new .css file. To export a web theme, use the following cmdlet.
Export-AdfsWebTheme âName default âDirectoryPath c:\theme
To apply the .css file to the new theme, use the following cmdlet.
Set-AdfsWebTheme âTargetName custom âStyleSheet @{path="c:\NewTheme.css"}
The following cmdlet creates a custom web theme from a new style sheet.
New-AdfsWebTheme âName custom âStyleSheet @{path="c:\NewTheme.css"} âRTLStyleSheetPath c:\NewRtlTheme.css
To apply the custom web theme to AD FS, use the following cmdlet.
Set-AdfsWebConfig -ActiveThemeName custom
To add JavaScript to AD FS, use the following cmdlet.
Set-AdfsWebTheme -TargetName custom -AdditionalFileResource @{Uri=' /adfs/portal/script/onload.js';path="D:\inetpub\adfsassets\script\onload.js"}