Create new Citrix Provisioning target devices, including VMware VM’s, DHCP reservation and AD accounts from a CSV file with PowerShell

As you may know my motto is; Automate Everything. So when a costumer asked me to create almost 100 Citrix Provisioning Services Target Devices with a correlation between MAC and IP address I thought to myself; let’s create a PowerShell script!’

Replicate the DHCP reservation to second DHCP Server in Production LAN

Create VM in VMware from Template Device

Set the MAC address of the new VM Production Network adapter

Set the MAC address of the new VM PVS Network adapter

The script is designed to work in an environment with VMware and where PVS and Production LAN are separated. If this is not the case you can of course edit the script to your liking! And if you have any problems editing the script you can always contact me.

Good question, and I’m really sorry but I’m not able to help with it now. My XenServer lab is down. Busy with VMware. Would be fun to figure that one out please keep me posted if you do and I will try and find time to do so as well.