workermaster Posted January 4, 2023 Share Posted January 4, 2023 Hi, I have a VM that I want to boot, and then shutdown on it's own. I got the boot part working, and got it to shutdown with the Windows task scheduler, but it doesn't always shutdown. So I want to shutdown the VM via userscripts. Here is how I start the VM: Easy enough. I found online that I could change it to this to get it to shutdown: Now for the problem. The VM does not always shutdown on the first try. Sometimes I need to manually run the shutdown command again. I would like to have the shutdown command run every 5 minutes until it notices that the VM is shutdown. Does anyone know how to do that? I am not familiar with these commands, so I don't know how to make it do that. Quote Link to comment
JonathanM Posted January 4, 2023 Share Posted January 4, 2023 Not a direct answer, but Windows is really bad at shutdown on command because of mandatory updates. Hibernate is a much more reliable solution, make sure you have the VM client drivers installed. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.