Which PowerShell commands should you run on Computer1?

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 following message:
“Remote Desktop can’t 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?

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 following message:
“Remote Desktop can’t 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:
http://technet.microsoft.com/en-us/library/jj554908.aspx
New-NetFirewallRule
Creates a new inbound or outbound firewall rule and adds the rule to the target computer.
Syntax
New-NetFirewallRule -DisplayName <String> [-Action <Action> ] [-AsJob] [-Authentication
<Authentication> ] [- CimSession <CimSession[]> ] [-Description <String> ] [-Direction <Direction> ]
[-DynamicTarget <DynamicTransport> ] [-EdgeTraversalPolicy <EdgeTraversal> ] [-Enabled
<Enabled> ] [-Encryption <Encryption> ] [-GPOSession <String> ] [-Group <String> ] [-IcmpType
<String[]> ] [-InterfaceAlias <WildcardPattern[]> ] [-InterfaceType <InterfaceType> ] [-LocalAddress
<String[]> ] [-LocalOnlyMapping <Boolean> ] [-LocalPort <String[]> ] [-LocalUser <String> ] [-
LooseSourceMapping <Boolean> ] [-Name <String> ] [-OverrideBlockRules <Boolean> ] [-Owner
<String> ] [- Package <String> ] [-Platform <String[]> ] [-PolicyStore <String> ] [-Profile <Profile> ]
[-Program <String> ] [-Protocol <String> ] [-RemoteAddress <String[]> ] [- RemoteMachine
<String> ] [-RemotePort <String[]> ] [-RemoteUser <String> ] [-Service <String> ] [- ThrottleLimit
<Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>] The New-NetFirewallRule cmdlet 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.



Leave a Reply 1

Your email address will not be published. Required fields are marked *