Your network contains an Active Directory domain named contoso.com.
The domain contains a computer named Computer1 that runs Windows 10.
Computer1 connects to a home network and a corporate network.
The corporate network uses the 172.16.0.0/24 address space internally.
Computer1 runs an application named App1 that listens to port 8080.
You need to ensure that App1.exe can accept connections only when Computer1 is connected to the corporate
network.
Solution: You run the command.
New-NetFirewallRule -DisplayName “Rule1” -Direction Inbound -Program “D:\\Apps\\App1.exe” -Action
Allow -Profile Domain
Does this meet the goal?
A.
Yes
B.
No
Explanation:
Tested correct cmdlet, worked, and the profile “Domain” for corporate network is also correct.