# Set all of your servers $servers = "sql2014","sql2016","sql2017" # Check to see if default trace is enabled $servers | Get-DbaSpConfigure -ConfigName DefaultTraceEnabled | Where-Object RunningValue -eq $false | Set-DbaSpConfigure -Value $true