Backup Active Directory Federation Services


I wanted to share a Powershell Backup Script which I created for a customer to backup his ADFS Infrastructure which was part of a Office 365 Deployment with a new tool called AD FS Rapid Restore Tool

Here is a link with all information about the Tool

The script which I used as a scheduled task

In Line 2 and 3 you have to define the Backup Share, where the backup should be saved to and the Encryption Password for the Backup. You will need the Password for restoring the backup.
Line 6 checks for backups which are older then 6 months and deletes them
Line 9 imports the DLL from the AD FS Rapid Restore Tool.
Line 10 will start the backup with the configured options.

Have a nice day, Michael