You administer Windows 10 Enterprise computers in your company network.
The computers are configured to allow remote connections.
You attempt to create a Remote Desktop Connection to a computer named Computer1.
You receive the followi
ng message:
-Remote Desktop cant connect to the remote computer.-
You are able to ping Computer1.
You discover that Remote Desktop Firewall rules are not present on Computer1.
You need to connect to Computer1 by using Remote Desktop.
Which PowerShell
commands should you run on Computer1?
A.
Set-NetFirewallRule -Name RemoteSvcAdmin-in-TCP -Enable True
B.
Set -NetFirewallRule -Name RemoteFwAdmin-In-TCP -Enable True
C.
New-NetFirewallRule -DisplayName RdpTCPin -localPort 3389 – Protocol TCP
D.
New-NetFirewallRule -DisplayName RdpTCPout -localPort 3389 – Protocol TCP
-Direction Out -Action Allow
Explanation:
New-NetFirewallRule
Creates a new inbound or outbound firewall rule and adds the rule to the target computer.
Syntax
New-NetFirewallRule -DisplayName
versal> ] [-Enabled ] [-LocalPort tring> ] [-Protocol t creates an inbound or outbound firewall rule and adds the rule to the target computer. http://en.wikipedia.org/wiki/Remote_Desktop_Protocol Remote Desktop Protocol By default, the server listens on TCP port 3389 and UDP port 3389. References: https://do cs.microsoft.com/en-us/powershell/module/netsecurity/new-netfirewallrule?view=winserver2012r2-ps