Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Resizes a virtual hard disk.

Syntax

Resize-VHD [-Path] <String[]> [-SizeBytes] <UInt64> [-AsJob] [-ComputerName <String[]>] [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]

Resize-VHD [-Path] <String[]> [-AsJob] [-ComputerName <String[]>] [-Passthru] -ToMinimumSize [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Resize-VHD cmdlet resizes a virtual hard disk. This cmdlet lets you shrink or expand the size of a virtual hard disk, but the shrink operation is allowed only on VHDX virtual hard disks. The shrink operation fails if it would shrink the virtual disk to less than its minimum size (available through the VHDX object

Synopsis

Resets the replication statistics of a virtual machine.

Syntax

Reset-VMReplicationStatistics [-VMName] <String[]> [-ComputerName <String[]>] [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Reset-VMReplicationStatistics [-VM] <VirtualMachine[]> [-PassThru] [-ReplicationRelationshipType <VMReplicationRelationshipType>] [-Confirm] [-WhatIf] [<CommonParameters>]

Reset-VMReplicationStatistics [-VMReplication] <VMReplication[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Reset-VMReplicationStatistics cmdlet resets the replication statistics of a virtual machine. Statistics accumulated up to that time are deleted, and replication monitoring begins collecting a new set of statistics. If replication health was reported as

Synopsis

Renames a virtual switch.

Syntax

Rename-VMSwitch [-Name] <String> [-NewName] <String> [-ComputerName <String[]>] [-Passthru] [<CommonParameters>]

Rename-VMSwitch [-VMSwitch] <VMSwitch> [-NewName] <String> [-Passthru] [<CommonParameters>]

Detailed Description

The Rename-VMSwitch cmdlet renames a virtual switch.

Parameters

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which the virtual switch is to be renamed. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Resets the resource utilization data collected by Hyper-V resource metering.

Syntax

Reset-VMResourceMetering [-VMName] <String[]> [-ComputerName <String[]>] [<CommonParameters>]

Reset-VMResourceMetering [-ResourcePoolName] <String> [[-ResourcePoolType] <VMResourcePoolType>] [-ComputerName <String[]>] [<CommonParameters>]

Reset-VMResourceMetering [-VM] <VirtualMachine[]> [<CommonParameters>]

Detailed Description

The Reset-VMResourceMetering cmdlet resets the resource utilization data collected by Hyper-V resource metering. When this cmdlet is called, the virtual machine or resource pool resource utilization data collected up to current point of time is deleted. Hyper-V continues to collect resource utilization data after reset.

Parameters

-ComputerName [<String[]>]

Specifies one or more virtual machine hosts for which resource utilization data is to be reset. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer

Synopsis

Repairs one or more virtual machines.

Syntax

Repair-VM [-CompatibilityReport] <VMCompatibilityReport> [-ComputerName <String[]>] [-Passthru] [-Path <String>] [-SnapshotFilePath <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The Repair-VM cmdlet corrects some issues that can impact the ability to import or move a virtual machine. If Compare-VM determines that an import or move operation would fail for a particular VM, it returns a collection of incompatibilities that need to be fixed before the operation can succeed. Most of these incompatibilities can be fixed by using Set-VM. However, Set-VM does not modify either the path where the VM configuration is stored or the path where the snapshot files are stored. Repair-VM handles these two particular issues in this one specific situation.

Parameters

-CompatibilityReport [<VMCompatibilityReport>]

Specifies a compatibility report which includes adjustments to be made during repair.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   True (ByValue)
Accept wildcard characters?   false

-ComputerName [<String[]>]

Specifies one or more Hyper-V hosts on which the virtual machine or machines are to be repaired. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer