PrepAway - Latest Free Exam Questions & Answers

Which cmdlet should you run?

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?

PrepAway - Latest Free Exam Questions & Answers

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

7 Comments on “Which cmdlet should you run?

  1. mcsa-student says:

    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
  2. kutilek11 says:

    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

Leave a Reply