Changing isopath VMware VM’s when using Provisioning boot from ISO

Problem:

When using a bootable ISO to get the Provisioning server settings and need to change the ISO because you add more servers and don’t use some sort of load balancing, you can do this by hand but this is very time consuming.

Solution:

With VMWare PowerCLI it’s possible to do this automated. Download PowerCLI from VMWare, after installing PowerCLI you can use the following command to change the ISOPath:

Get-vm -Name VMNAME* |Get-CDDrive | set-cddrive -isopath “[Templates-Iso] XenDesktopNew.iso”

The Get-VM -Name is used to create a filter to which machines you would like to apply the new settings.

First connect to vcenter using Connect-VIServer, enter the vcenter server FQDN and the credentials.

Links:

Set-CDDrive: https://www.vmware.com/support/developer/PowerCLI/PowerCLI41/html/Set-CDDrive.html
PowerCLI 5.5: https://my.vmware.com/web/vmware/details?downloadGroup=PCLI550&productId=352

 

Posted in: Citrix, Provisioning, VMware

banner