SANS560 GIAC Penetration Tester (GPEN) Practice Test

Access More Questions
Which command shows the Windows firewall settings, including all profiles?
Correct Answer:
netsh advfirewall show allprofiles
Explanation:
To view Windows Firewall settings for every network profile, you need the Advanced Firewall context and request all profiles in one command. The correct command is netsh advfirewall show allprofiles. The advfirewall namespace is the modern interface for Windows Firewall with Advanced Security, and show allprofiles returns the settings for Domain, Private, and Public profiles in one view, giving a complete picture of how the firewall is configured across all contexts. The other options use older or incorrect syntax—netsh firewall is deprecated on newer Windows versions, and showing the current profile only returns just the active profile, not all of them.

Access more questions from this quiz

Continue to SANS560 GIAC Penetration Tester (GPEN) Practice Test for more practice questions and the full quiz experience.

Access More Questions