Microsoft Windows [Version 6.1.7000] (C) Copyright 2009 Microsoft Corp. C:\Windows>netsh advfirewall mainmode show rule ?
Usage: show rule name=|all
[profile=all|current|public|private|domain[,...]][type=dynamic|static (default=static)][verbose]
Remarks:
- Display existing main mode settings that match the name specified.
Displays all matching rules as specified by name and optionally,
profile can be specified.
If "all" is specified in the name, all mainmode settings will be shown
for the profiles specified.
Examples:
Display a main mode rule by name test:
Netsh advfirewall mainmode show rule name="test"