I followed the Datastore Mount/Unmount Detach/Attach functions for single host from
I get the below error when I run the command. Any guess what could be doing wrong here?
Unmount-Datastore -WhatIf -VMHost $arrVMHostsForUnmount -Datastore $arrDStores
Unmount-Datastore : A parameter cannot be found that matches parameter name 'WhatIf'.
At line:1 char:26
+ Unmount-Datastore -WhatIf <<<< -VMHost $arrVMHostsForUnmount -Datastore $arrDStores
+ CategoryInfo : InvalidArgument: (:) [Unmount-Datastore], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Unmount-Datastore