the following command disables exceptions:
netsh firewall set opmode mode = ENABLE exceptions = DISABLE
To allows exceptions:
netsh firewall set opmode mode = ENABLE exceptions = ENABLE
turn off firewall:
netsh firewall set opmode DISABLE
turn on firewall
netsh firewall set opmode ENABLE