PowerShell:: PowerCLI:: Provision multiple VMs from a Template on Vmware

Below script create multiple VMs from the same template on same cluster and datastore $noVms = Read-host "Enter number of VMs to be created" $cluster = Read-host "Enter Name of the cluster" $dsCluster = Read-host "Enter Name of the Datastore cluster" $template = Read-host "Enter template name" Connect-VIServer <vcenter server name> -Credential (Get-Credential -Message "Credential … Continue reading PowerShell:: PowerCLI:: Provision multiple VMs from a Template on Vmware

Advertisements

PowerCLI to Migrate VMs across vCenter servers

Below script which was created for a unique requirement with us for migrating our 6.0 vcenter to 6.5 appliance. Since we have planned for complete refresh of the hardware along with vCenter server. we have not used vCenter migration assistance https://blogs.vmware.com/vsphere/2017/01/vcenter-server-appliance-6-5-migration-walkthrough.html We have two vCenter environment with different set of hardware, we had around 25 … Continue reading PowerCLI to Migrate VMs across vCenter servers