Creating Provisioning Services & XenDesktop Virtual Desktops on Windows Server 2012 Hyper-V using PowerShell!

Click to download: WS2012_HyperV_PVS_XenDesktop_StreamedVM_Setup_Wizard.ps1 I was recently asked to do a hypervisor performance comparison using LoginVSI against Windows Server 2008 R2 SP1 Hyper-V 2 and the newly released Windows Server 2012 Hyper-V 3.  For this scenario we would need to spin up a number of virtual desktops on Hyper-V 2.0 and Hyper-V 3.0 using Citrix Provisioning Services and Citrix XenDesktop for the connection broker.  This was a very exciting project for me, but seeing that Windows Server 2012 is not yet supported for use with PVS or XenDesktop, I had to be a bit creative in the virtual machine creation process. [...]