Your network contains an Active Directory domain named contoso.com. The domain contains a member server
named HVServer1. HVServer1 runs Windows Server 2012and has the Hyper-V server role installed.
HVServer1 hosts two virtual machines named Server1 and Server2. Both virtual machines connect to a virtual
switch named Switch1.
On Server2, you install a network monitoring Application named App1.
You need to capture all of the inbound and outboundtraffic to Server1 by using App1.
Which two commands should you run from Windows PowerShell? (Each correct answer presents part of the
solution. Choose two.)
A.
Get-VM “Server2” | Set-VMNetworkAdapter -IovWeight 1
B.
Get-VM “Server1” | Set-VMNetworkAdapter -Allow/Teaming On
C.
Get-VM “Server1” | Set-VMNetworkAdapter -PortMirroring Source
D.
Get-VM “Server2” | Set-VMNetworkAdapter -PortMirroring Destination
E.
Get-VM “Server1” | Set-VMNetworkAdapter -IovWeight 0
F.
Get-VM “Server2” | Set-VMNetworkAdapter-AllowTeaming On
Explanation:
C: Catching the traffic from Server1
D: Catching the traffic to Server1.
Note:
* Get-VM
Gets the virtual machines from one or more Hyper-V hosts.
-ComputerName<String[]>
Specifies one or more Hyper-V hosts from which virtual machines are to be retrieved. NetBIOS names, IP
addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost”
or a dot (“.”) to specify the local computer explicitly.
* Set-VMNetworkAdapter
Configures features of the virtual network adapter in a virtual machine or the management operating sy stem.
* -PortMirroring<VMNetworkAdapterPortMirroringMode>Specifies the port mirroring mode for the network
adapter to be configured. Allowed values are None, Source, and Destination. If a virtual network adapter is
configured as Source, every packet it sends or receives is copied and forwarded to a virtual network adapter
configured to receive the packets. If a virtual network adapter is configured as Destination, it receives copied
packets from the source virtual network adapter. The source and destination virtual network adapters must be
connected to the same virtual switch. Specify None to disable the feature.
Reference: Set-VMNetworkAdapter; Get-VM
http://technet.microsoft.com/en-us/library/hh848479%28v=wps.620%29.aspx
http://technet.microsoft.com/en-us/library/hh848457%28v=wps.620%29.aspx