Question: What is the function of the following PowerShell script? New - NetFirewallRule - Protocol TCP - LocalPort 2 2 - Direction Inbound - Action Allow

What is the function of the following PowerShell script?
New-NetFirewallRule -Protocol TCP -LocalPort 22-Direction Inbound -Action Allow -DisplayName SSH
Options:
Create a Windows firewall rule that blocks SSH traffic.
Create a Windows firewall rule that allows TCP port 22 traffic sent into the host.
Create a Windows firewall rule that allows SSH traffic sent out to external hosts.
Create a Windows firewall rule that blocks TCP port 22.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!