Last active
April 8, 2018 18:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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