Securing Windows Server 2016 — Question 126
Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.
You have a server named Server1 that runs Windows Server 2016.
You need to view all of the inbound rules on Server1.
Which cmdlet should you use?
Answer options
- A. Get-NetIPSecRule
- B. Get-NetFirewallRule
- C. Get-NetFirewallProfile
- D. Get-NetFirewallSetting
- E. Get-NetFirewallPortFilter
- F. Get-NetFirewallAddressFilter
- G. Get-NetFirewallSecurityFilter
- H. Get-NetFirewallApplicationFilter
Correct answer: B
Explanation
The correct answer is B, Get-NetFirewallRule, as it specifically retrieves the firewall rules, including inbound ones. The other options focus on different aspects of firewall settings, such as profiles, settings, and filters, but do not directly list the inbound rules.