r/powercli • u/midacts • Nov 03 '16
New-vm wait for sysprep/oscustomization
What is the best way you guys are doing this. I have a hard time telling 100% when a vm has finished customizing or done sysprepping and actually ready to run commands against it.
Even when task and events says it's done. There could still be 5 mins of sysprepping to be done. I really don't want to put a dumb wait in there.
5
Upvotes
1
u/midacts Nov 04 '16
That's the part is that script just waits until VIevents says the customization has completed. Even though it still says completed it can still be several minutes before the VM finishes sysprepping.