Hi,
I'm trying to schedule a task which includes creating a vm from a template and after it's done expand the virtual hard disk. Everything works fine when running straight from Powershell. When running via scheduled task everything else works fine except the expand phase gets somehow totally skipped.
I see a job about changing the properties of the virtual machine but only with change "Status: Stopped" -> "Status: Stopped". The script includes powering on the vm which works totally fine.
Any ideas?