I want to create datastore DS100 and later use following script. where is my fault?
Thanks a lot.
XiongYe
$x=100
foreach ($DS in (Get-vmhost vm-hostname|get-scsilun –luntype disk |select canonicalname)){
New-Datastore -VMHost prme-erqa-002.eng.vmware.com -Name DS-$x -Path $DS
$x=$x+1
}