Reset-HvVmChangeTracking

Short Description

Clears change tracking data for a specific VM or specific virtual disk (VHD).

Applies to

Platform: Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides parameter sets that allow you to:

  • Clear change tracking data for a specific VM.

Reset-HvVmChangeTracking -Server <CHost> [-VMName <String>]  [<CommonParameters>]

  • Clear change tracking data for a specific virtual disk (VHD).

Reset-HvVmChangeTracking -Server <CHost> [-VhdPath <String>]  [<CommonParameters>]

  • Clear change tracking data for a specific virtual disk (VHD).

Reset-HvVmChangeTracking -Server <CHost> [-VhdPath <String>]  [<CommonParameters>]

Detailed Description

This cmdlet clears and resets change tracking data for a specific VM or for a specific virtual disk (VHD).

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

Server

Specifies the server where the VM reside.

Accepts the CHost object. To get this object, run the Get-VBRServer cmdlet.

True

1

False

VMName

Specifies the VM. The cmdlet will reset change tracking data for this VM.

String

False

Named

False

VhdPath

Specifies the virtual disk (VHD). The cmdlet will reset change tracking data for this disk.

String

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Reset-HvVmChangeTrackingExample 1. Resetting Change Tracking Data for VM

This example shows how to reset change tracking data for the Fileserver VM located on host represented by the $server variable.

$server = Get-VBRServer

Reset-HvVmChangeTracking -Server $server -VMName "Fileserver"

Perform the following steps:

  1. Run the Get-VBRServer cmdlet. Save the result to the $server variable.
  2. Run the Reset-HvVmChangeTracking cmdlet. Set the $server variable as the Server parameter value. Specify the VMName parameter value.

Reset-HvVmChangeTrackingExample 2. Resetting Change Tracking Data for Specified Virtual Disk

This example shows how to reset change tracking data for the specified virtual disk. The VM is located on host represented by the $server variable.

$server = Get-VBRServer

Reset-HvVmChangeTracking -Server $server -VhdPath "C:\Users\Public\Hyper-V\Virtual Hard Disks\hv_dns.vhdx"

Perform the following steps:

  1. Run the Get-VBRServer cmdlet. Save the result to the $server variable.
  2. Run the Reset-HvVmChangeTracking cmdlet. Set the $server variable as the Server parameter value. Specify the VhdPath parameter value.

Related Commands

Get-VBRServer