Delete and create checkpoint of a list of VMs in different hosts

gautam nandakumar 1 Reputation point
2021-06-13T05:16:48.647+00:00

List of hyperVs in txt
List of Vms in txt

Search if each VM is in hyperV

If yes delete all checkpoint (show progress) and then create checkpoint (show progerss)

Else search next hyperV


Please help/guide me to create this script in PS, thanks.

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,546 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Yuhan Deng 3,761 Reputation points Microsoft Vendor
    2021-06-14T02:37:22.25+00:00

    Hi,
    I’m sorry but I do not understand the problem. Would you describe it again?
    Based on my understanding, you’re trying to create checkpoints for other vms from your local vm, by scripts, is that correct?
    Please be more specific about the question you want to ask.

    Thanks for your understanding.
    Best regards,
    Danny

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

    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.


  2. Yuhan Deng 3,761 Reputation points Microsoft Vendor
    2021-06-14T02:37:50.5+00:00

    Hi,
    For your reference, you might want to take a look at this:
    https://www.altaro.com/hyper-v/remote-management-powershell/
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Thanks for your understanding.
    Best regards,
    Danny

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

    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.

    0 comments No comments

  3. Yuhan Deng 3,761 Reputation points Microsoft Vendor
    2021-06-14T06:15:08.807+00:00

    Hi,
    You might want to refer to this article:
    https://learn.microsoft.com/en-us/powershell/module/hyper-v/get-vmsnapshot?view=windowsserver2019-ps
    You can select the version like this:
    105273-image.png
    Thanks for your time.
    Best regards,
    Danny

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

    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.

    0 comments No comments

  4. Yuhan Deng 3,761 Reputation points Microsoft Vendor
    2021-06-17T02:07:16.767+00:00

    Hi,
    I did some research but it seems that there’s no official documents that provide commands of this kind.
    Please take a look at the links below:
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/try-hyper-v-powershell
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/checkpoints

    Thanks for your understanding.
    Best regards,
    Danny

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

    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.

    0 comments No comments

  5. Yuhan Deng 3,761 Reputation points Microsoft Vendor
    2021-06-21T07:55:44.333+00:00

    Hi,

    I would like to check if the issue has been fixed? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback.

    Best Regards,
    Danny

    0 comments No comments