While Windows Firewall service is disabled trying to apply this ↓ command
netsh advfirewall firewall add rule name="My App (HTTP-In)" dir=in action=allow protocol=TCP localport=1234 remoteip=localsubnet program=SYSTEM
causes this error:
An error occurred while attempting to contact the Windows Firewall service. Make sure that the service is running and try your request again.
I know that you can add rules directly through Registry Editor by adding values to this ↓ key, but I would like to omit this way.
The question is: Is there another way to add firewall rules while Windows Firewall service is disabled?