Skip to content

Instantly share code, notes, and snippets.

@Zonciu
Last active December 27, 2017 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zonciu/1ed48ea8c70edc251cf1edaa15f6742c to your computer and use it in GitHub Desktop.
Save Zonciu/1ed48ea8c70edc251cf1edaa15f6742c to your computer and use it in GitHub Desktop.
Add Service Fabric exclusion file and path to Windows Defender
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