Microsoft Defender Firewall Rules - Windows 10, 11, and Windows Server (Preview)

%3CLINGO-SUB%20id%3D%22lingo-sub-3204284%22%20slang%3D%22en-US%22%3EMicrosoft%20Defender%20Firewall%20Rules%20-%20Windows%2010%2C%2011%2C%20and%20Windows%20Server%20(Preview)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3204284%22%20slang%3D%22en-US%22%3E%3CP%3EI%20realize%20that%20the%20firewall%20rules%20configuration%20for%20this%20platform%20is%20in%20preview%2C%20but%20was%20wondering%20if%20anyone%20has%20had%20any%20success%20configuring%20this%20profile%20using%20env%20variables%20in%20the%20file%20path%20section.%20Last%20week%20when%20working%20with%20the%20rules%20everything%20seemed%20to%20work%20great%20but%20when%20going%20back%20in%20to%20add%20more%20rules%20this%20week%20I%20noticed%20that%20the%20File%20Path%20section%20was%20broken%20and%20stating%20the%20path%20entered%20was%20an%20invalid%20regEx%20value.%20I%20tried%20testing%20with%20the%20information%20in%20the%20help%20bubble%26nbsp%3B%3CSPAN%3E%25WINDIR%25%5CNotepad.exe%20which%20also%20failed.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHas%20anyone%20seen%20such%20behavior%20and%20have%20they%20been%20able%20to%20find%20a%20work%20around%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I realize that the firewall rules configuration for this platform is in preview, but was wondering if anyone has had any success configuring this profile using env variables in the file path section. Last week when working with the rules everything seemed to work great but when going back in to add more rules this week I noticed that the File Path section was broken and stating the path entered was an invalid regEx value. I tried testing with the information in the help bubble %WINDIR%\Notepad.exe which also failed. 

 

Has anyone seen such behavior and have they been able to find a work around? 

1 Reply
I am not sure if any one has gotten back to you on this, but I have been having this exact issue as well. Not sure what the fix is or if there is one. Let us know if you found something please.