Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $sqlinstancename = "MSSQL13.MSSQLSERVER"
  2. $SQLBinPath = (Get-ItemProperty ([io.path]::combine("HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server", $sqlinstancename, "Setup"))).SQLBinRoot
  3.  
  4. $param = @{
  5. ExclusionExtension = "mdf", "ldf", "ndf" , "bak", "trn"
  6. ExclusionProcess = (Get-Item (Join-Path $SQLBinPath "sqlservr.exe"))
  7. ExclusionPath = "C:\Windows\Cluster"
  8. }
  9.  
  10. Set-MpPreference @param
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement