Evend ID 19050 when exporting VMs via scheduled Powershell script
I have several servers that export their running VMs using Mike Galvin’s script here:
https://gal.vin/2017/09/18/vm-backup-for-hyper-v
In short this script checks for running VMs, exports the running VMs to a particular location, logs it, and can email if desired.
All but one of our servers runs this script fine. On the server in question I can log personally, open powershell in admin mode and successfully run this script with zero errors. However sometime in the last year the automated way we run this script stopped
working… sort of.
On this server there are 7 VMs running. When the script is kicked off via Scheduled Tasks, 6 of the 7 VMs take the following error:
Event ID 19050 ‘ServerX’ failed to perform the operation. The virtual machine is not in a valid state to perform the operation. (Virtual machine ID 7B70D5A0-F71C-45BA-8506-AB5A983594AF)
We have a dedicated account that runs these scripts. Again all other servers running this script have zero errors. I changed the account running this script to my own since I can successfully run it manually. Still pulls that error.
I’ve done a little searching on it and most of the data I find doesn’t help. Does anyone have any ideas?
- Top 20 articles for vRealize Operations, December 2020 January 25, 2021
- Top 20 articles for EUC, December 2020 January 25, 2021
- New KB articles published for the week ending 17th January, 2021 January 25, 2021
- New KB articles published for the week ending 10th January, 2021 January 15, 2021
- New KB articles published for the week ending 3rd January,2021 January 7, 2021