exceptions - Exception mode (optional). ENABLE - Allow through firewall (default). DISABLE - Do not allow through firewall.
profile - Configuration profile (optional). CURRENT - Applies to the active profile. Active profile can be domain, standard (i.e. private), or public. (default). DOMAIN - Applies to the domain profile. STANDARD - Applies to the standard (i.e. private) profile. ALL - Applies to the domain and standard (i.e. private) profile. Does not apply to the public profile.
Examples:
set opmode ENABLE set opmode mode=ENABLE exceptions=DISABLE
NETSH / FIREWALL / SET / OPMODE
netsh firewall set opmode - Windows Vista - commandSets firewall operational configuration. - Windows Vista netsh, firewall, set, opmode, cmd, command, Windows, Vista