Hi all, i have two quesitons:
1. how are you cloning today VMs with powershell (command)= ...?
2. are you having an errorhandling integrated, f.e. if a VM cloning fails you get an email alert?
Thank you in advance
Didn't notice the -Runasync on the New-VM cmdlet. In this case you can not use the pipeline.
Have a look at my About Async tasks, the Get-Task cmdlet and a hash table post.
It uses RunAsync and in line 16 you can see how the script starts the guest, provided the New-VM completes successfully.
I am trying to implement a script with similar features.... Could you please share your last version to try it in my enviroment? Thanks for your help