Wednesday, October 27, 2010

Daily PowerCLI Primer - Add an NFS share to all hosts in a cluster.

Add an NFS share named NFS01 to all hosts in a cluster named "My Cluster".

Connect-VIServer MYVISERVER


Get-Cluster "My Cluster"
Get-VMHost
New-Datastore -Nfs -Name NFS01 -NFSHost nfs.anydomain.com -Path NFS01
 
~ Scott March

0 comments:

Post a Comment