I have written a little script to get the creation time of each restore point in the last x days:
$VMs = $ImportCSV # Names of Virtual Machines
$DateToCompare = 10
foreach ($vm in $VMs) {
$allRestorePoints = Get-VBRRestorePoint -Name $vm.Name |
where {$_.CreationTime -gt $DateToCompare} |
Select-Object VMName, CreationTime
}
This script is showing me all the VM names and the creation time of the restore points in the last $DateToCompare
days. But how can I count the restore points for each VM and export it to CSV?