Problem

Enable database autotuning for all databases on the Enterprise/Developer Edition instance

Solution

https://github.com/steverezhener/DBA/blob/master/Procedures/bestpractices.usp_enable_database_autotuning.sql