I needed a quick way to poll sizes of the datastores in a script but didn't want certain datastores displayed.
More to come....
Here is a way of creating an NFS Datastore
Three commands that can be scripted:
New-Datastore -Nfs -VMhost $myhost -Name $LocalName -Path $remotePath -NfsHost $remoteIP
Get-Datastore | where {$_.Name -match "Prd"} | where {$_.Name -notmatch "Local"}
More to come....
Here is a way of creating an NFS Datastore
Three commands that can be scripted:
$myhost = get-vmhost <ESXhostname>
$LocalName = "<Local Datastore Name>"
$remotePath = "<NFS Path>"
$remoteIP = "<NFS Server Name or IP>"
Comments