#Add exclusions
Add-MpPreference -ExclusionProcess "C:\Program Files\Avigilon\Avigilon Control Center Server\VmsAdminPanel.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsAdminPanel.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsAdminPanelLauncher.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsDaemonService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Daemon\VmsDaemon.exe",
"C:\Program Files\Avigilon\Avigilon Unity Core\VmsCore.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\VmsUpgraderApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Server\LPR6\LprDaemonApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Device Management\VmsDeviceManagement.exe",
"C:\Program Files\Avigilon\Avigilon Unity Analytics Add-on\AnalyticsDaemonService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Client\VmsClientApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Client Framework\AvigilonUnityClientFramework.exe",
"C:\Program Files\Avigilon\Avigilon Unity Web Endpoint\WebEndpointService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Web Endpoint\node.exe",
"C:\Program Files\Avigilon\Avigilon Unity API Gateway\VmsApiGateway.exe",
"C:\Program Files\Avigilon\Avigilon Unity Cloud Bridge\VmsCloudBridge.exe",
"C:\Program Files\Avigilon\Avigilon Unity Orchestrator Service\VmsOrchestratorService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Virtual Matrix\VmsVirtualMatrixApp.exe",
"C:\Program Files\Avigilon\Avigilon Unity Software Manager\Service\VmsLocalUpdaterService.exe",
"C:\Program Files\Avigilon\Avigilon Unity Player\VmsPlayerApp.exe",
"C:\Program Files (x86)\Avigilon\Avigilon Unity Player\VmsPlayerApp.exe"
Add-MpPreference -ExclusionExtension ".avd"
Add-MpPreference -ExclusionPath "$Env:programdata\Avigilon",
"$Env:appdata\Avigilon",
"$Env:localappdata\Avigilon",
"C:\Program Files\Avigilon",
"D:\AvigilonData",
"E:\AvigilonData",
"D:\AvigilonConfig",
"C:\AvigilonConfig"

#Check what is already excluded
Get-MpPreference | Select-Object -Property ExclusionExtension -ExpandProperty ExclusionExtension
Get-MpPreference| Select-Object -Property ExclusionPath | Format-table -wrap
Get-MpPreference | Select-Object -Property ExclusionProcess | Format-list


