In this comprehensive tutorial, you will learn how to configure Path exclusion on Windows Defender using PowerShell. This step-by-step guide will provide you with all the necessary information to use Powershell to set the Path exclusion on Windows Defender.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Path exclusion on Windows Defender

Start an elevated Powershell command line.

Windows 10 - powershell elevated

Configure a Windows Defender Path exclusion.

Copy to Clipboard

Configure multiple Path exclusions.

Copy to Clipboard

Add Path exclusions to an existing configuration.

Copy to Clipboard

Remove a Path exclusion rule from Windows Defender.

Copy to Clipboard

Remove multiple Path exclusion rules from Windows Defender.

Copy to Clipboard

Remove all Path exclusion rules from Windows Defender.

Copy to Clipboard

List the Windows Defender Path exclusion configuration.

Copy to Clipboard

Congratulations! You are able to configure Path exclusion rules in Windows Defender using Powershell.

Tutorial Powershell - Extension exclusion on Windows Defender

Start an elevated Powershell command line.

Windows 10 - powershell elevated

Configure a Windows Defender Extension exclusion.

Copy to Clipboard

Configure multiple Extension exclusions.

Copy to Clipboard

Add Extension exclusions to an existing configuration.

Copy to Clipboard

Remove an Extension exclusion rule from Windows Defender.

Copy to Clipboard

Remove multiple Extension exclusion rules from Windows Defender.

Copy to Clipboard

Remove all Extension exclusion rules from Windows Defender.

Copy to Clipboard

List the Windows Defender Extension exclusion configuration.

Copy to Clipboard

Congratulations! You are able to configure Extension exclusion rules in Windows Defender using Powershell.