PowerShell script exchange
Post Reply
frufru
Service Provider
Posts: 8
Liked: never
Joined: Feb 27, 2018 9:48 am
Full Name: frufru
Contact:

Reset-HvVmChangeTracking

Post by frufru »

Hello guys,

after storage failure during backup I have problem with all change tracking for each VM in our Hyper-V cluster. How can i run this: https://helpcenter.veeam.com/docs/backu ... ml?ver=100

For all VM´s and their VHDX in our Hyper-V cluster? We have hundreds of VMs.

Thank you!
nielsengelen
Product Manager
Posts: 5796
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Reset-HvVmChangeTracking

Post by nielsengelen » 2 people like this post

Normally you can run it against your hosts as well.

Code: Select all

asnp veeampssnapin
$cluster = Get-VBRServer -Type HvCluster

Foreach ($server in $cluster) {
    Reset-HvVmChangeTracking -Server $server
}
If you want to run it over all your VMs, the following should do the trick:

Code: Select all

asnp veeampssnapin
 
$vms = Find-VBRHvEntity | Where-Object {$_.Type -eq "Vm"} | Select-Object Id, Name, Type
$cluster = Get-VBRServer -Type HvCluster 

foreach ($vm in $vms) {
    Reset-HvVmChangeTracking -Server $server -VMName $vm.Name
}
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
frufru
Service Provider
Posts: 8
Liked: never
Joined: Feb 27, 2018 9:48 am
Full Name: frufru
Contact:

Re: Reset-HvVmChangeTracking

Post by frufru »

Thank you, it's working!
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests