Start server manager, click on manage, add roles and features, select Active Directory Federation Services, then click next.
Click next until we reach confirmation screen to install ADFS. Click install.
When installation is complete, you can launch the ADFS configuration wizard from here, or alternatively if this window is closed it can be launched from server manager.
Select option “Create the first federation server in a federation server farm” and click next.
(If get this error, you first need to join to a domain)
Provide your domain admin credentials.
Select the SSL certificate that you will use (if you don’t have one create a self signed certificate).
Provide your chosen display name, and click next.
It is possible to use a Group Managed Service Accounts. In this case a standard service account was used.
Select the database configuration
Review your selections
If the ADFS pre-requisite checks are done, click on configure and until is all done.
Now you have to configure the federation service
Verify Federation Service Metadata
Open your browser and navigate to your ADFS server’s federation metadata URL (ex. https://<your adfs server>/federationmetadata/2007-06/federationmetadata.xml).
Verify ADFS Sign-In Page
Browse to the ADFS sign-in page and test that you are able to authenticate. (ex. https://<your adfs server>/adfs/ls/idpinitiatedsignon.htm).