Last active
December 27, 2017 14:28
-
-
Save Zonciu/1ed48ea8c70edc251cf1edaa15f6742c to your computer and use it in GitHub Desktop.
Add Service Fabric exclusion file and path to Windows Defender
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
param ( | |
[Parameter(Mandatory = $true)] | |
[string] $FabricDataRoot, | |
[Parameter(Mandatory = $true)] | |
[string] $FabricLogRoot | |
) | |
$Preferences = Get-MpPreference | |
$ExclusionList = "$env:ProgramFiles\Microsoft Service Fabric", | |
$FabricDataRoot, | |
$FabricLogRoot, | |
"Fabric.exe", | |
"FabricHost.exe", | |
"FabricInstallerService.exe", | |
"FabricSetup.exe", | |
"FabricDeployer.exe", | |
"ImageBuilder.exe", | |
"FabricGateway.exe", | |
"FabricDCA.exe", | |
"FabricFAS.exe", | |
"FabricUOS.exe", | |
"FabricRM.exe", | |
"FileStoreService.exe" | |
Set-MpPreference -ExclusionPath $ExclusionList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment