I'm trying to find a way to fill the custom attribute "Datastore" with the datastore name of the datastore the VM is currently running on. I would like to achieve this using the PowerCLI. We are using vSphere v5.0. I tried to google for it, but I could not find a solution. Since I am not very good in scripting I could find a solution for myself. Thanks for any help.
↧