First thing I do nowadays when I get access to a SQL Server. Add my SQL instances to Registered Servers then:

Get-DbaRegServer | Export-DbaInstance

This will export a bunch of objects including logins, jobs, database backup scripts, sp_configure, server roles, database mail and more #SQLServer #PowerShell