'Windows Firewall: Inbound rule. Randomly generated program path

I am creating and Inbound firewall rule to allow a program. Problem is, program path is slightly different on each system.

Path is as follows

C:\windows\users\%username%\appdata\local\apps\2.0\yh786.y7u\gui65gd.7uy\Program.exe

C:\windows\users\%username%\appdata\local\apps\2.0\hy87h.t5r\hytd43.6tf\Program.exe

On every system the two directories between \2.0\ AND \program.exe are different and randomly generated.

When I am making the inbound rule is there a wildcard I can use in the program path for these randomly generated segments.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source