Reputation: 1
Afternoon. I'm new new to this and trying to expand my knowledge so forgive me if I sound way off from left field.
I have a PC running a VM that I use to teach students some of our software install in various situation. I have used a program called AOMEI backupper to restore via a batch file but I've found it will sometimes bork and just leave the computer in a loop or bluescreen. With that info I have not decided to do VM instead.
I have gotten the VM up and running how I would like it and starting to slightly understand the VM process but I'm stumped at this part.
When I want to restore a VM to a prior checkpoint I have found my appropriate scrip to type into the powershell, however I notice it MUST be elevated to admin.
My current script is:
start-process powershell -verb runAs
restore-vmcheckpoint -name "start of class" -vmname "server1" -confirm:$false
When running that it will open powershell into admin but doesn't bring over the other info to run so it just sits there. The above script is saved as a .ps1
file.
I have tried to batch file this with no success. I run a program called netsupport
that allows me to highlight all student machines and run a file as needed. EX: I can run Teamviewer by "sending" it to them which is just the program executing that file directly on the students PC.
At the end of the day I'm looking to try to double click a single file on the VM host and have it restore a VM to a prior checkpoint.
It is a niche use I know but hoping I can put this together to automate it vs having to log into 18 different machines and manually reset the VM back to OG.
Upvotes: 0
Views: 27