Few Handy VMware Powershell commandlines

Add a HDD to a virtual machine: $VM=’name of the VM’ $size=’Size in GB, Numeric only’ $Datastore=’Name of the Datastore’ $ProvisionType=”Thin/Thick/EagerZeroedThick”) $Controller=’SCSI Controller 0′ New-HardDisk -VM $VM -CapacityGB $size -Datastore $Datastore -StorageFormat $ProvisionType -Controller $Controller $DiskType   Clone VM $Name=’Name of the new VM’ $source=Name of the Source virtual machine’ $Datastore=’Datastore name’ $host=’host name or […]

Read More

VMware PowerCLi Install on windows 10, 1809

Install PowerCli from Windows Gallery Open powerCLI as an administrator and then run: Install-Module -Name VMware.PowerCLI List available VMware module: Get-Module -ListAvailable -Name VMware*   Import Module  Get-Module vmware* | Import-Module Set execution policy to remote signed if the importing fails: Set-ExecutionPolicy RemoteSigned   the failure generally would look like the below: PS C:\windows\system32> Import-Module […]

Read More