Master the Windows Server 2012 Challenge 2026 – Power Up Your IT Skills Now!

Session length

1 / 400

Which specific PowerShell command would you use to modify firewall rules?

Get-NetFirewallRule.

Set-NetFirewallRule.

To modify existing firewall rules in Windows Server 2012, the appropriate PowerShell command is Set-NetFirewallRule. This command specifically allows administrators to change the properties of a rule already in the firewall configuration.

When you need to adjust parameters such as the action (allow or block), the profile (public, private, or domain), or any other attributes of a pre-existing firewall rule, Set-NetFirewallRule is the tool designed for this purpose. By using this command, you can apply the necessary modifications without needing to delete and recreate the rule, ensuring more efficient management of firewall settings.

The other commands serve different functions: Get-NetFirewallRule is used to retrieve and display the current firewall rules, New-NetFirewallRule creates new rules, and Remove-NetFirewallRule deletes existing rules. Each of these commands plays a vital role in firewall management, but none are suitable for modifying existing rules directly, which is why Set-NetFirewallRule stands out as the correct choice for this task.

Get further explanation with Examzify DeepDiveBeta

New-NetFirewallRule.

Remove-NetFirewallRule.

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy