Changing the Primary AD FS server in a farm

The need to change which server is the primary server in an AD FS farm only exists in an AD FS environment which is configured to use a Windows Internal Database to store the configuration. If the AD FS farm is configured to use a SQL database is used then all servers are “primary”.

Note that the primary server must be accesible via HTTP on port 80 from the secondary server(s).
On the server you want to configure as the Primary server open an PowerShell prompt and enter:

On the previous primary server which should now become a secondary server enter the PowerShell command:

To check the status enter the cmdlet:

The output displayed depends on which server you ran the cmdlet. The primary server should display:

The secondary server will display a little bit more information:


I hope this was informative. For questions or comments you can always give a reaction in the comment section or contact me:

One thought on “Changing the Primary AD FS server in a farm

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.