Created
September 30, 2016 04:21
-
-
Save MasayukiOzawa/06cac2e73b98b863ca7986bb067d5da8 to your computer and use it in GitHub Desktop.
This file contains 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
$sqlinstancename = "MSSQL13.MSSQLSERVER" | |
$SQLBinPath = (Get-ItemProperty ([io.path]::combine("HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server", $sqlinstancename, "Setup"))).SQLBinRoot | |
$param = @{ | |
ExclusionExtension = "mdf", "ldf", "ndf" , "bak", "trn" | |
ExclusionProcess = (Get-Item (Join-Path $SQLBinPath "sqlservr.exe")) | |
ExclusionPath = "C:\Windows\Cluster" | |
} | |
Set-MpPreference @param |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment