Powershell script for creating checkpoints on running machines, with user input

Hello,
I need help with making a powershell script. The script has to offer a possibility of creating snapshots on all running Hyper-V virtual machines. It has to ask a user if he wants to create checkpoint for each of the running machines and if the answer is “yes” it stops that running machine, creates a checkpoint and then starts the machine.
Then this process should repeat for the next running machine.

Do you have any code we could review?

If not, you might start looking at the Hyper-V PowerShell commands:

1 Like