Hi, i'm trying to do a powershell script in my installer that add the installed directory to the list of exclustions in defender.
I've seen a couple posts on here but I can't make any of it work.
please see the attached image for my script. I'm sure i'm missing something simple but I can't find it.
I tried both deferred execution as well as commit. neither worked so far.
it's sequenced after PublishProduct in my list
TY