How to create automatic alerts in Hyper-V Manger for checkpoints left open over a period of time?

Chris Samways 21 Reputation points
2021-04-28T15:19:09.133+00:00

I would like to be alerted if a checkpoint gets left open after a period of time (ex. 1 day). If that cannot be done then possibly automatically deleting the checkpoint? I would prefer to not have to run a Powershell script to constantly check this. I could have this script automated from Connectwise Automate but it would have to be added and applied to a lot of different servers running Hyper-V Mangers. Not sure what the best way of going about this would be. In VMWare you can have alerts created in Auvik so the issue is just for Hyper-V vms. Any ideas would be appreciated.

Windows for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V
{count} votes

Accepted answer
  1. JiayaoZhu 3,926 Reputation points
    2021-04-29T05:17:53.567+00:00

    Hi,

    Thank you for your posting!

    Firstly, as I know, Microsoft Hyper-V does not have a way to alert you if a checkpoint gets left open after a period of time (ex. 1 day) or automatically delete a cehckpoint every evening, for instance. We do have a feature that can automatically create a production checkpoint for a new created VM when the VM opens to run, though. The only way I can offer you is using PowerShell command:

    Get-VMSnapshot -VMName TestVM | Where-Object {$_.CreationTime -lt (Get-Date).AddDays(-90) } | Remove-VMSnapshot

    This command deletes all checkpoints of virtual machine TestVM older than 90 days.

    However, I suppose you do not want to use it as you said in your post. So, in this case I may suggest you to find out some third-party tools to help you.

    In addition, you can post your demand on our feedback website to let us know, and we will work hard on that in the furture.

    Thank you for your understanding and support! If possible, please help me accept answer, so people who have the same issue with yours will get their answers more quickly.

    BR,
    Joan

    --------------------------------------------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.