Comment

Love these functions but when running the Unmount I get the following errors -

Exception calling "UnmountVmfsVolume" with "1" argument(s): "Cannot complete

the operation due to an incorrect request to the server."

At C:\Users\Chris\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:

137 char:6

+

$StorageSys.UnmountVmfsVolume($DS.ExtensionData.Info.vmfs.uuid);

+

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : VimException

I had this code in my Powershell Profile and also in a PS1 file alone with the same result.

Chris