What is a good script or free/trial tool to inventory/replicate all settings in master db?
Fastest way...
1. Connect to instance with CU5 master
2. Right-click master database> tasks> Generate Scripts
3. Wizard is launched for scripting database objects.
To get server principals:
How to transfer logins and passwords between instances of SQL Server


Or, Powershell!
Automated Script-generation with Powershell and SMO