Skip to content

Instantly share code, notes, and snippets.

@potatoqualitee
Last active April 8, 2018 18:34
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment