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='http://aka.ms/ssprsetup'"" style='background:#0072c6;padding: 8px'><span style='color:white'>Register for Forgot Password</span></td><td width=""50%"" onclick=""location.href='https://passwordreset.microsoftonline.com/?whr=savilltech.net'"" style='background:#00BCF2;padding: 8px'><span style='color:white'>Forgot or Reset Password?</span></td></tr><tr><td width=""50%"" onclick=""location.href='https://account.activedirectory.windowsazure.com/Proofup.aspx'"" style='background:#DC3C00;padding: 8px'><span style='color:white'>Register for Phone / MultiFactor</span></td><td width=""50%"" onclick=""location.href='https://msdn.microsoft.com/en-us/library/azure/dn903763.aspx'"" 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 john@savilltech.com.

Please or Register to post comments.

Microsoft Stack Master Class

Master-Level Microsoft Stack Class with John Savill
Online Class: Thursdays Oct. 12th-Dec. 21st
30 Hours of Training for $995!

Understand the complete Microsoft solution stack, how the products work together, and how to implement and maintain for a total datacenter and desktop solution. This course covers the latest technology updates including Windows Server 2016 and Windows 10 and will enable the new capabilities to be leveraged in your organization.

 

Join the Conversation

Sponsored Introduction Continue on to (or wait seconds) ×