Skip to content

Makes Branding AD FS on Windows Server 2012 R2 and newer a piece of cake

License

Notifications You must be signed in to change notification settings

chrisbrownie/Invoke-AdfsBranding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Invoke-AdfsBranding.ps1

After what seemed like hundreds of AD FS deployments involving rebranding exercises, I got sick of following the TechNet article and then weaving my way through the CSS and JavaScript looking for a particular value and the impact it had on the rest of the page. This, Invoke-AdfsBranding.ps1 was born. One quiet weekend later, this has made all my subsequent AD FS deployments a lot easier. Time to focus on making the page pretty, rather than finding that single line of CSS.

This script rebrands the entire environment on each run. As such, I'd advise against making any customisations outside the script, as you may find they don't survive. I'd welcome pull requests to provide further customisation of the AD FS branding.

Requirements

  • Script is tested on Windows Server 2012 R2 and above. As such, it is supported on Windows PowerShell 4.0 and above
  • Script must be run from the primary AD FS server in the farm. Remoting is not yet tested
  • It is recommended to follow these AD FS Best Practices guides for Windows Server 2012 R2 and Windows Server 2016 to ensure your AD FS environment is in good condition, paying particular attention to patch recommendations

Credits

  • Thanks to Mathias Bynens for this great gist demonstrating how to change a page's favicon using JavaScript. Since we can't access the root of the domain through the AD FS cmdlets, we use this mechanism to update the AD FS favicon using JavaScript and a favicon.ico file in a non-standard path

Resources

Microsoft publish two great articles on branding AD FS, but they both assume you're only doing it once, and that you're a CSS/JavaScript ninja.

About

Makes Branding AD FS on Windows Server 2012 R2 and newer a piece of cake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published