3 commands to add exclusions to Windows Defender.

  • Add-MpPreference -ExclusionPath ‘C:\Program Files (x86)\MSBuild’

This command adds an exclusion for a specific path. In this example, the MSBuild directory within the Program Files (x86) folder is excluded from Windows Defender scans.

  • Add-MpPreference -ExclusionProcess ‘dotnet.exe’

This command excludes a specific process from being scanned. Here, the ‘dotnet.exe’ process is excluded.

  • Add-MpPreference -ExclusionExtension « .cpp »

th this command, you can exclude files with a specific extension. In this case, all « .cpp » files are excluded from scans.


0 commentaire

Laisser un commentaire

Emplacement de l’avatar

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.