Pre-post data capture commands - pass machine name to script

Hi,
is it possible to pass known valiables to a pre-post command?
We have some VMware-VMs which must be shutdown prior data capture begins and would be nice to start them again afterwards.
One packup plan ist setup for a VM-Folder, all machines should be shutdown before data capture to minimize downtime.
Vasily provided an example script here some time ago but it would work for a manually given machine name only.
Since members of that VM-Folder are varying the backup plan (or script in this case) shouldn't be altered manually every time.
There are variables used in "backup file name" setting, it would be nice to have them passed to any script in pre-post commands.
Best regards,
Raphael


Hi Vasily,
thanks for your suggestion and explanation, it worked so far.
First I got confused about the UUID and I don't have a vCloud Director running.
Here is how to get the "right" InstanceUUID directly from vCenter via PowerShell:
Get-VM | %{$_.extensiondata.config.InstanceUUID}
Thanks a lot!
Best regards,
Raphael

Hello Raphael,
thanks for sharing the result and the details on this forum!