ADFS New sign-in experience added

Update October 6th 2018: Posted about Windows Server 2019 ADFS and Center Branded UX: Windows Server 2019 ADFS features Center Branded UX out of the box!

Paginated UI as we know it from the Center Branded UX was added. Added screenshots.

Also known as “Centered UI”, or “Center Branded”, or “Azure AD UX”. I like to call it “Center Branded UX”.

You might have noticed that Microsoft’s online services have started offering the sign-in pages with a new UI, even when you still see the “old” ui:
If you click “Try it now”, or have before, the sign-on page will look like this:
And this is what’s called the new sign-in experience. Notice how the login UI shows a box for your user ID and a Next button. This is called Login Pagination.

I’ve been toying with the idea to create this as an ADFS WebTheme for a while now, and then I noticed a tweet by MrADFS:
Thank you Samuel Devasahayam @MrADFS!

Head on over to and follow the easy instructions to set it up.

If you already have a customized ADFS WebTheme to which you want to apply the CenterBrand look, follow these steps.

Remember to make sure you have a backup of your current theme before proceding.

Download the css from and save it to your ADFS server as ThemeCenterBrand.css.

Keep in mind that the new css requires a differently sized logo and, preferably, a differently sized background. I say preferably because it will look good anyway using the CenterBrand look.
For the default WebThemes in ADFS the logo and background requirements can be found on for the logo, and on for the background illustration. It says there that the logo should be 260 width and 35 height and the background should be 1420 width x 1080 height.
The image requirements for the CenterBrand UI can be found on It says there the logo should be 256 width x 24 height and the background should be 1080 width x 1024 height.
Resize your logo and background illustration if needed and save them to the location where you saved the css file. I do advise to resize the logo image.

Download the javascript that contains the logic for Login Pagination from and save it to your ADFS server as paginatedOnload.js.

Open an administrative powershell prompt and type the following command:

Set-AdfsWebTheme -TargetWebTheme (Get-AdfsWebTheme -Name (Get-AdfsWebConfig).ActiveThemeName) -StyleSheet @{path="<path to ThemeCenterBrand.css>"} -Logo @{path="<path to logo file>"} -AdditionalFileResource @{Uri="/adfs/portal/script/onload.js"; path="<path to paginatedOnload.js>"}


-Illustration @{path="<path to background image>"}

if you need to upload a resized background illustration.
So if you need the new css, a new logo and a new background:

Set-AdfsWebTheme -TargetWebTheme (Get-AdfsWebTheme -Name (Get-AdfsWebConfig).ActiveThemeName) -StyleSheet @{path="<path to ThemeCenterBrand.css>"} -Logo @{path="<path to logo file>"} -AdditionalFileResource @{Uri="/adfs/portal/script/onload.js"; path="<path to paginatedOnload.js>"} -Illustration @{path="<path to background image>"}

And that’s it.

Before (Bing image November 18th):

After (also Bing image November 18th):

I’ve tested this on both ADFS 3.0 and ADFS 2016 and it works great on both!

Added Bonus (Bing image November 19th):

Login UI (Bing image November 19th):cui_07

Update Password UI (Bing image November 19th):cui_08

My ADFS Automated Bing Wallpaper script also works on ADFS 2016 with Center Branded UX as well.
If you want to know more about the ADFS Automated Bing Wallpaper script, or for download instructions; see this post.

Until next time,

Arjan Mensch

Post-post tip :)

If you want to use the picture that the Azure AD UX uses:cui_02
You can find it here. Not sure if you’re legally allowed to use it though..

25+ years experience in Microsoft powered environments. Enjoy automating stuff using powershell. In my free time (hah! as if there is any) I used to hunt achievements and gamerscore on anything Xbox Live enabled (Windows Mobile, Windows 8, Windows 10, Xbox 360 and Xbox One). Recently I picked up my Lego addiction again.

Tagged with: , , , , , ,
Posted in ADFS 2016, ADFS 3.0, Customize, Federation, Step-by-Step guide, Windows 2012 R2, Windows 2016
16 comments on “ADFS New sign-in experience added
  1. James says:

    Is it possible to see some more snaps of other pages with this CSS in place, such as the main login pages?

  2. James says:

    Arjan, are you able to assist me in diagnosing my issue?

    I have downloaded the CSS from the link provided on the Microsoft doc, then created a new web theme using that CSS.

    When I set the active theme to the new theme and refresh my ADFS page, it is basically just white with a small gray sign in/out box in the top left corner with a bit of text.


    • James says:

      God I’m useless!

      I somehow managed to download the page the CSS was on, not the CSS itself!

      Copied and pasted the CSS from the GitHub page into a file, saved as CSS, recreated the web theme and it’s working :D

  3. James says:

    Arjan, me again haha.

    How do you go about setting the illustration image after you create a new web theme using the centerbrand css?

    I created a new theme as per the documentation using the CSS, and then ran this:
    Set-AdfsWebTheme -TargetName AzureUX -Illustration @{path=”C:\ADFS Themes\Azure UX\Illustration.png”}

    I refresh the page, and the background remains as just the default blue colour.

    I don’t think it is the image at fault, as have tried as PNG and JPG, and have also tried the illustration image from the ADFS 3.0 default theme still with no luck.

    • Arjan Mensch says:

      Hi James,
      The syntax for your powershell command looks correct. Is your ADFS server part of a farm based on WID (Windows Internal Database)? If so, you need to run the command on all farm members..

      • James says:

        Hi Arjan,

        I am running on the primary server in a farm running on WID.
        If I run any commands on the secondary server however, I just get:

        This cmdlet cannot be executed from a secondary server in a local database farm. The primary server is presently XXX/ To execute the management cmdlets, either log onto the primary server or connect using powershell remoting.

        Not sure if it is an issue with the CSS?
        Someone replied to my comment on the MS page with the same problem:

        Many thanks

      • James says:

        Answer was, when creating the new theme, you also need to specify “-SourceName default”, or load the onload.js manually.
        Once I deleted and recreated using the default theme as the source, it works perfectly!

      • Arjan Mensch says:

        Hi James,
        Glad to see you fixed it. May even help other visitors.

  4. DaGriff says:

    Does this work when you use ADFS drop downs for signing into third party cloud services?

  5. Jim says:

    Hello. On the old adsf sign in page I used SAM-account name as a login format. I had to Change the onload.js

    where I can Change the paginatedonload.js that sam-account works

    thank you

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog Authors

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 446 other followers

Blog Stats
  • 3,603,310 hits
  • An error has occurred; the feed is probably down. Try again later.
  • An error has occurred; the feed is probably down. Try again later.
%d bloggers like this: