Script Download: 22223.zip
http://gallery.technet.microsoft.com/Configuring-FBA-SQL-or-935f5c0c

Script allows an IT admin to configure LDAP or SQL based FBA on SharePoint 2010/2013 web applications i.e. it makes all the changes in web.config files of Central Admin, STS and web applications on all the Servers automatically minimizing the possibility of human error and drastically reducing the time and effort. It also puts in place basic checks like SQL/LDAP connectivity checks, duplicates, web application eligibility for FBA. Most important it takes the backup of each file before modifying anything providing a kind of failback mechanism in case of issues

Normally configuring FBA in SharePoint involves manual entry of various kinds in web.config files of CA, STS and target web application on all the servers in the farm, resulting in higher probability of human induced errors and subsequently increased time and effort.

image image
 image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery