Disable-VMResourceMetering
Disable-VMResourceMetering
Disables collection of resource utilization data for a virtual machine or resource pool.
Syntax
Parameter Set: ResourcePool
Disable-VMResourceMetering [-ResourcePoolName] <String> [[-ResourcePoolType] <VMResourcePoolType> {Memory | Processor | Ethernet | VHD | ISO | VFD | FibreChannelPort | FibreChannelConnection | PciExpress} ] [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ComputerName <String[]> ] [-Credential <System.Management.Automation.PSCredential[]> ] [ <CommonParameters>]
Parameter Set: VMName
Disable-VMResourceMetering [-VMName] <String[]> [-CimSession <Microsoft.Management.Infrastructure.CimSession[]> ] [-ComputerName <String[]> ] [-Credential <System.Management.Automation.PSCredential[]> ] [ <CommonParameters>]
Parameter Set: VMObject
Disable-VMResourceMetering [-VM] <VirtualMachine[]> [ <CommonParameters>]
Detaillierte Beschreibung
The Disable-VMResourceMetering cmdlet disables collection of resource utilization data for a virtual machine or resource pool.
Calling this cmdlet stops collection of data and deletes data collected up to the point of the call.
After the call, Measure-VM and Measure-VMResourcePool are not usable.
Parameter
-CimSession<Microsoft.Management.Infrastructure.CimSession[]>
Das Cmdlet wird in einer Remotesitzung oder auf einem Remotecomputer ausgeführt. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, wie z. B. die Ausgabe eines New-CimSession oder Get-CimSession-Cmdlets. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByPropertyName) |
Platzhalterzeichen akzeptieren? |
false |
-ComputerName<String[]>
Specifies one or more Hyper-V hosts on which resource utilization data collection is to be disabled. 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.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Credential<System.Management.Automation.PSCredential[]>
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-ResourcePoolName<String>
Specifies the friendly name of the resource pool on which resource utilization data collection is to be disabled.
Aliase |
Name |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
True (ByValue, ByPropertyName) |
Platzhalterzeichen akzeptieren? |
false |
-ResourcePoolType<VMResourcePoolType>
Specifies the resource type of the resource pool on which resource utilization data collection is to be disabled.
Aliase |
none |
Erforderlich? |
false |
Position? |
2 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
True (ByPropertyName) |
Platzhalterzeichen akzeptieren? |
false |
-VM<VirtualMachine[]>
Specifies the virtual machine on which resource utilization data collection is to be disabled.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
True (ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-VMName<String[]>
Specifies the friendly name of the virtual machine on which resource utilization data collection is to be disabled.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
- Microsoft.HyperV.PowerShell.VirtualMachine[]
- Microsoft.HyperV.PowerShell.VMResourcePoolType
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
Beispiele
Example 1
Disables collection of resource utilization data on a virtual machine named TestVM.
PS C:\> Disable-VMResourceMetering –VMName TestVM
Example 2
Disables collection of resource utilization data on a set of virtual machines whose names begin with the string Test.
PS C:\> Get-VM Test* | Disable-VMResourceMetering
Example 3
Disables collection of resource utilization data on a resource pool named TestResourcePool of type Memory.
PS C:\> Disable-VMResourceMetering –ResourcePoolName TestResourcePool –ResourcePoolType Memory