zander1989
Posts: 3
Joined: Sun Mar 10, 2024 4:42 am

Adding entire folder to windows defender exclusion

Sun Mar 10, 2024 5:18 am

Hello,
Is it possible to add the APPDIR to the windows defender exclusion list?

I am running this custom PowerShellScriptInline:

Code: Select all

Add-MpPreference -ExclusionPath [APPDIR]
But it just doesn't work it adds APPDIR only instead of the path, any suggestions? Not so good with powershell

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Adding entire folder to windows defender exclusion

Mon Mar 11, 2024 9:23 am

Hello and welcome to our forums,

To get a property value in a PowerShell Script custom action, please check our Getting a property value into a script article.
PS property.png
PS property.png (108.35KiB)Viewed 1411 times

Hope this helps! Let us know if you have any other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube


Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Adding entire folder to windows defender exclusion

Tue Mar 12, 2024 9:04 am

You're always welcome!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”