Customize the ADFS authentication page with buttons!

Q. How can I add custom HTML to the logon page of my ADFS server?

A. As part of the ADFS server customization it is possible to specify some sign-in page description text which is HTML. This can really be anything including a neat looking table showing some useful links like that shown below.

To do this first work out the HTML you want in a standard HTML editor then modify if to be one long string and if you have double quotes as you will need to double them up. Below is an example I use however this should all run on one line.

                              Set-AdfsGlobalWebContent -SignInPageDescriptionText "<table cellspacing=""6"" cellpadding=""8""><tr><td width=""50%"" onclick=""location.href=''"" style='background:#0072c6;padding: 8px'><span style='color:white'>Register for Forgot Password</span></td><td width=""50%"" onclick=""location.href=''"" style='background:#00BCF2;padding: 8px'><span style='color:white'>Forgot or Reset Password?</span></td></tr><tr><td width=""50%"" onclick=""location.href=''"" style='background:#DC3C00;padding: 8px'><span style='color:white'>Register for Phone / MultiFactor</span></td><td width=""50%"" onclick=""location.href=''"" style='background:#00188F;padding: 8px'><span style='color:white'>Register this device</span></td></tr></table>"

Each week, John Savill answers all of your toughest tech questions about the worlds of Windows Server, Azure, and beyond. Read his past IT advice here, and email your questions to

Please or Register to post comments.

Azure Master Class

Azure Master Class with John Savill
Live Online Training: Thursdays August 10th to August 31st
Register by August 3rd and Save 20%!

Every organization is currently evaluating how they can utilize the public cloud, what it means, and how to actually get started. This 12 session Master Class will equip you with everything you need to understand, evaluate, deploy and maintain environments that utilize Microsoft Azure including hybrid scenarios.


Join the Conversation

Sponsored Introduction Continue on to (or wait seconds) ×