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

Adding entire folder to windows defender exclusion

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: 1048
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Adding entire folder to windows defender exclusion

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.35 KiB) Viewed 7431 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: 1048
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Adding entire folder to windows defender exclusion

You're always welcome!

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

Return to “Common Problems”