I recently screwed up my ADFS v. 2.0 installation on a test environment by using a bad SSL (Service Communications) certificate. Of course, the UI nor PowerShell offered any help in fixing this issue, therefore, I had to resort to completely uninstalling and re-installing ADFS v. 2.0. It is recommended that you follow the steps below to perform a COMPLETE cleanup of ADFS.
If you forget to perform one of the cleanup operations such as deleting the application directories from the IIS website, you will receive an error message similar to the following:
If you forget to perform one of the cleanup operations such as deleting the application directories from the IIS website, you will receive an error message similar to the following:
- Go into Control Panel-->Programs
- Uninstall a Program
- Click on View Installed Updates in the left hand pane
- Click on Active Directory Federation Services 2.0 listed under the Windows heading
- Click the Uninstall button
- When prompted for the confirmation, click Yes
- Click Restart Later to postpone restarting the computer
- Now it is time to clean up the IIS installation of ADFS
- Open up a Command Prompt window
- Type the following command at the command prompt: C:\Windows\System32\inetsrv\appcmd delete app “Default Web Site/adfs”
- If the command was successful, it should indicate that the Web App was deleted such as the following message: APP object "Default Web Site/adfs" deleted
- Type the following command at the command prompt: C:\Windows\System32\inetsrv\appcmd delete app “Default Web Site/adfs/ls”
- If the command was successful, it should indicate that the Web App was deleted such as the following message: APP object "Default Web Site/adfs/ls" deleted
- Delete the ADFS folder from the file system (usually under C:\inetpub\adfs)
- Now you should be able to restart the computer
- After re-starting the computer, you can proceed with re-installing ADFS (and perhaps Update Rollup 2).
- Once ADFS has been re-installed, you can proceed with the ADFS Configuration Wizard once more
- Proceed through the ADFS Configuration Wizard as before
- When you get to the step where you have to delete the existing ADFS database, check the checkbox to "Delete database"
- If everything works correctly, the ADFS Configuration wizard should complete successfully (with perhaps some warnings).