You have a Hyper-V host that runs Windows Server 2016. The host contains a virtual machine named VM1.
VM1 has resource metering enabled.
You need to use resource metering to track the amount of network traffic that VM1 sends to the 10.0.0.0/8
network.
Which cmdlet should you run?

A.
New-VMResourcePool
B.
Set-VMNetworkAdapter
C.
Add-VMNetworkAdapterAcl
D.
Set-VMNetworkAdapterRoutingDomainMapping
Explanation:
References:
https://technet.microsoft.com/itpro/powershell/windows/hyper-v/add-vmnetworkadapteracl
Answer C is correct according to the reference: https://technet.microsoft.com/itpro/powershell/windows/hyper-v/add-vmnetworkadapteracl
7
0
Its A not C
0
3
Check measure-vmresourcepool
0
2
Correct is A.
There is Swift explanation:
https://www.briefmenow.org/microsoft/which-cmdlet-should-you-run-281/
but better one is there:
https://docs.microsoft.com/en-us/powershell/module/hyper-v/add-vmnetworkadapteracl?view=win10-ps
look at Example 4.
0
1
Sorry, should be C.
3
0
I think the answer is C.
this command adds an ACL to meter outgoing traffic sent to IP subnet 10.0.0.0/8:
Get-VMNetworkAdapter -VMName Redmond | Add-VMNetworkAdapterAcl -RemoteIPAddress 10.0.0.0/8 -Direction Outbound -Action Meter
3
0
Correct C
1. enable Metering
Get-VM -Name “VM1” | Enable-VMResourceMetering
2. get metering VM1
$report = Get-VM -Name “VM1” |Measure-VM
3. output without Add-VMNetworkAdapterAcl
$report.NetworkMeteredTrafficReport
LocalAddress RemoteAddress Direction TotalTraffic(M)
———— ————- ——— —————
::/0 Outbound 0
0.0.0.0/0 Inbound 1
0.0.0.0/0 Outbound 1
::/0 Inbound 1
4. add-VMNetworkAdapterAcl –VMName VM1 –Action Meter –Direction Outbound –RemoteIpAddress 10.0.0.0/8
output
$report = Get-VM -Name “VM1” |Measure-VM
$report.NetworkMeteredTrafficReport
LocalAddress RemoteAddress Direction TotalTraffic(M)
———— ————- ——— —————
::/0 Outbound 0
0.0.0.0/0 Inbound 1
0.0.0.0/0 Outbound 1
::/0 Inbound 1
10.0.0.0/8 Outbound 0
1
0