Your network contains an Active Directory domain named contoso.com. The domain
contains two member servers named Server1 and Server2 that run Windows Server 2012
R2.
You log on to Server1.
You need to retrieve a list of the active TCP connections on Server2.
Which command should you run from Server1?
A.
netstat> server2
B.
winrm get server2
C.
winrs -r:server2netstat
D.
dsquery * -scope base -attrip,server2
Explanation:
This command line tool enables administrators to remotely execute most Cmd.exe
commands using the WSManagement protocol.
Incorrect answers:
A: The winrm.cmd command–line tool for system management is implemented in a Visual
Basic Scripting Edition file (Winrm.vbs) written using the WinRM scripting API. This tool
enables an administrator to configure WinRM and to get data or manage resources.
B: This command queries the directory by using search criteria that you specify. Each of the
dsquery commands finds objects of a specific object type, with the exception of dsquery*,
which can query for any type of object. It is available if you have the Active Directory DomainServices (AD DS) server role installed. To use dsquery, you must run the dsquery command
from an elevated command prompt.
D: Displays active TCP connections, ports on which the computer is listening, Ethernet
statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols),
and IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols).
Used without parameters, netstat displays active TCP connections. However, you must
retrieve the list of active TCP connections on Server2 from Server1.
References:
http://msdn.microsoft.com/en-us/library/aa384291(v=vs.85).aspx