Still having an odd issue that when i specify the datacenter location for the datastore it gives me this error, but still unmounts it. Why would it give this error when i sepcify the exact datastore? Oh I should mention that this datastore is currently "inactive" because it was removed from the storage array
get-datacenter "Data Center 1" | Get-VMHost | remove-datastore-Datastore (get-datastore-name Templates_ISOs" -Datacenter "Data Center 1") -confirm:$false
Remove-Datastore : 1/11/2013 9:16:53 AM Remove-Datastore A specified
parameter was not correct.
At line:1 char:75
+ get-datacenter "Data Center 1" | Get-VMHost | remove-datastore <<
<< -Datastore (get-datastore -name "Templates_ISOs" -Datacenter "Data Center 1") -confirm:$false
+ CategoryInfo : NotSpecified: (:) [Remove-Datastore], InvalidArg
ument
+ FullyQualifiedErrorId : Client20_VmHostServiceImpl_RemoveDatastoreOfViOb
ject_InvalidArgument,VMware.VimAutomation.ViCore.Cmdlets.Commands.RemoveDa
tastore