VMware Cloud Community
cjm4820
Contributor
Contributor

remove Datastore from single ESXi Host.

I followed the Datastore Mount/Unmount Detach/Attach functions for single host from Re: Unmout Datastore from 1 host

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

0 Kudos
0 Replies