跳到主要內容

Hyper-V 計量

適用於Windows 2012 R2 Hyper-V

Enable-VMResourceMetering

Reset-VMResourceMetering

Disable-VMResourceMetering

Measure-VM –VMName Greendale-VM

$report = Measure-VM –VMName Greendale-VM
$report | Format-List


Get-VM vm-guest-name | Enable-VMResourceMetering
Get-VM vm-guest-name | Measure-VM | select *

(Measure-VM -VMName vm-guest-name).NetworkMeteredTrafficReport

Add-VMNetworkAdapterAcl -VMName SQL2012 -Action Meter -RemoteIPAddress 10.10.0.0/16 -Direction Outbound


Parameter Set: VMName
Add-VMNetworkAdapterAcl [-VMName] <String[]> -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-ComputerName <String[]> ] [-LocalIPAddress <String[]> ] [-LocalMacAddress <String[]> ] [-Passthru] [-RemoteIPAddress <String[]> ] [-RemoteMacAddress <String[]> ] [-VMNetworkAdapterName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ManagementOS
Add-VMNetworkAdapterAcl -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> -ManagementOS [-ComputerName <String[]> ] [-LocalIPAddress <String[]> ] [-LocalMacAddress <String[]> ] [-Passthru] [-RemoteIPAddress <String[]> ] [-RemoteMacAddress <String[]> ] [-VMNetworkAdapterName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ResourceObject
Add-VMNetworkAdapterAcl [-VMNetworkAdapter] <VMNetworkAdapterBase[]> -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-LocalIPAddress <String[]> ] [-LocalMacAddress <String[]> ] [-Passthru] [-RemoteIPAddress <String[]> ] [-RemoteMacAddress <String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: VMObject
Add-VMNetworkAdapterAcl [-VM] <VirtualMachine[]> -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-LocalIPAddress <String[]> ] [-LocalMacAddress <String[]> ] [-Passthru] [-RemoteIPAddress <String[]> ] [-RemoteMacAddress <String[]> ] [-VMNetworkAdapterName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Get-VMNetworkAdapterACL VM1 | Remove-VMNetworkAdapterACL

留言

這個網誌中的熱門文章

[經驗分享]開源IT資產管理系統 - Open-AudIT

企業營運必定與電腦系統脫離不了關係,每一部電腦散落在各部門、各辦公室,若是較具規模的公司,甚至會有跨好幾個地區的辦公室存在。 from Pocket http://ift.tt/2sI5nuB via IFTTT

實體店拓展外,UNIQLO 要如何以 O2O 虛實整合持續在台灣成長?

日本服飾品牌 UNIQLO 邁入來台 10 週年,除了全台設有實體店鋪,更在來台初期即有網路商店,提供完整品項與尺碼,以及線上下單、店鋪取貨的店取模式,打造 O2O 全通路購物體驗。 from Pocket https://ift.tt/31hLfzF via IFTTT

RegistryChangesView 登錄檔比對工具,挖出某個設定修改了什麼..

在 Windows 電腦中,很多軟體在安裝/移除或執行時會在系統的「登錄檔」資料庫裡面加入、移除或修改許多項目,有些有修改是必須的,有些修改沒弄好的話可能會造成一些問題導致某些功能不正常或系統不穩定等等情況。 from Pocket http://ift.tt/2wiZCWi via IFTTT