Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

How to create datastore use canonicalname

$
0
0

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

}


Viewing all articles
Browse latest Browse all 175326

Trending Articles