Manage vSAN using Powercli

Powercli is a command line tool which based on Windows PowerShell. We can use it for automate our tasks. This article will show some of the valuable comnmads we can use to manage our vSAN infrastructure.

1. First will check what are the  available command in powercli relate to the vSAN


Get-command *vsan*


2. We can check the health of vSAN cluster




3. We can get the vSAN cluster configuration using below command



4. Using Get-VsanDiskGropu command we can get disk group details

Continue reading “Manage vSAN using Powercli”

How to configure SMB share on vSAN

1. First we need to enable file services on vSAN cluster

a. Login to the vCenter

b. Select the cluster

c. Click on Configure

d. Click on Services

e. Click on Enable  on File services


2. Click on Next


3. We need to provide below details

Continue reading “How to configure SMB share on vSAN”

Powershell script to get VM details with CSV name

$getallvms=(get-vm -ComputerName (Get-ClusterNode))


foreach ($item in $getallvms)










 #Write-Host $


 $result+=New-Object psobject -Property $properties


$result |Sort-Object path

vSphere 7 VM Template Versioning

This is a very useful feature with vSphere 7.Earlier version when we need to do modification or apply OS patches to template we need to convert template back to vm and had do that, but with vCenter 7 , we can maintain versioning.

How to do that?

1. First thing these templates should be in content library


2. I have created my template and its in my content library. If I click on template , we can see the version tab


3. Now I’m going to install Windows patches on this template, therefore I select the template and click on Check out VM From This Template on versioning tab. Then I have to give temporary name for this vm

Continue reading “vSphere 7 VM Template Versioning”