Thank you for your response. However if I read the unmounts function correctly it is gogin to get all the hosts that are connected to the datastore and unmounts from those hosts. Unfortunately I have about 10 hosts that a datastore is mounted to and I do not want all the hosts to be unmounted from the datastore that is why I need to get the unmount function to do it from the host and ask for the specific datastore name to unmount. I have been looking at the script you provided a link to try and create a hosts to single datastore solution.
↧