A few days ago MS Exchange team published a script that helps you export CAS role settings. Usage of the script:
.\exportcasconfig -cloneConfigData:"C:\CASConfigData.xml" -Key:"A9ABA4D2C21C4bc58B303EA47BBE3608" (32 byte string used for password encryption/decryption)
-Key parameter is optional and is used in case there are any passwords that need to be encrypted.
Script will export:
- Web.config files
- Registry settings
- Certain IIS settings not available from the Exchange Management Shell, such as Require SSL, Web Site Bindings, Certificate Mappings, HTTP Redirects, etc.
The script can be downloaded from here.
Related article: http://msexchangeteam.com/archive/2007/11/14/447534.aspx