Your network contains an Active Directory domain named contoso.com. The domain contains an
application server named Server1. Server1 runs Windows Server 2012 R2. You have a client
application named App1 that communicates to Server1 by using dynamic TCP ports.
On Server1, a technician runs the following command: New-NetFirewallRule -DisplayName
AllowDynamic – Direction Outbound -LocalPort 1024- 65535 -Protocol TCP.
Users report that they can no longer connect to Server1 by using App1.
You need to ensure that App1 can connect to Server1.
What should you run on Server1?
A.
Set-NetFirewallRule -DisplayName AllowDynamic -Action Allow
B.
netsh advfirewall firewall set rule name=allowdynamic new action = allow
C.
Set-NetFirewallRule -DisplayName AllowDynamic -Direction Inbound
D.
netsh advfirewall firewall add rule name=allowdynamic action=allow
-Direction
Specifies that matching firewall rules of the indicated direction are modified.
This parameter specifies which direction of traffic to match with this rule.
The acceptable values for this parameter are: Inbound or Outbound.
The default value is Inbound.