To analyze dangerous settings in your SQL Server, just copy, paste and execute this script.
Please test this on you development system first.
Once executed the script will detect your SQL server setting and look for any dangerous settings. If dangerous settings are detected, text will be displayed with more information. No settings are changed so you will have to make the changes manually.
Only use/change dangerous SQL server setting when instructed by Microsoft support to fix a specific issue/problem.