Tag Archives: new-datastore

Add and remove VMware NFS datastores via PowerCLI

Been experimenting with these recently, and they have to be added to or removedĀ from each host individually, which is tedious via the GUI. Easy via PowerShell/PowerCLI though. Add: $hosts = Get-VMHost -Location “RCM” foreach($VMHost in $hosts){ Write-Host $VMHost.Name New-Datastore -VMHost … Continue reading

Rate this:

Posted in PowerShell, vSphere | Tagged , , , , , , , , | Leave a comment