netsh advfirewall firewall add rule name="SUBSTANCE" dir=in action=allow program="C:\Program Files\Allegorithmic\Substance Painter\Substance Painter.exe" enable=yes netsh advfirewall firewall add rule name="SUBSTANCE" dir=out action=allow program="C:\Program Files\Allegorithmic\Substance Painter\Substance Painter.exe" enable=yes