Provisioning

Hide Citrix vDisk icon

Problem:

You like to hide the Citrix Provisioning vDisk icon form taskbar.

Solution:

Create a new Dword key named “ShowIcon” and set the value to 0 in the following location:

HKCU\Software\ProvisioningServices\StatusTray\  

You can also use the Group Policy to deploy the Registry key.

 

The application was unable to start correctly (0xc01500002). ConfigWizard.exe

Problem:

After installing Provisioning Server 7.1 and you want to start the Configuration Wizard you receive the following error: “The application was unable to start correctly (0xc01500002)”

Error configwizard

Solution:

When looking at the Event Log you will see the following error message:

Activation context generation failed for “C:\Program Files\Citrix\Provisioning Services\LicHelp.dll”. Dependent Assembly Microsoft.VC90.CRT,processorArchitecture=”amd64″,publicKeyToken=”1fc8b3b9a1e18e3b”,type=”win32″,version=”9.0.21022.8″ could not be found. Please use sxstrace.exe for detailed diagnosis.

 

This means the program needs the Visual C++ 2008 Redistributable Package. Download and install it and you will be able to open the Configuration Wizard.

Download link for Visual C++ 2008 SP1 Redistributable Package: http://www.microsoft.com/en-us/download/details.aspx?id=2092

Links:

Unable to unmount vhd provisioning server

Problem:

When mounting a VHD file using the provisioning server console you normally get an orange arrow which indicates the vDisk is mounted, but sometimes you don’t receive the arrow and then you can’t unmount the vdisk.

mountedVHD

Solution:

To unmount a vDisk which isn’t indicated as mounted in the Provisioning Services console, use cvhdmount.exe.

cvhdmount.exe is at the following location: C:\Program Files\Citrix\Provisioning Services\.

Use the following command: cvhdmount.exe -u <sn> where <sn> is the  serial number and must be greater than zero, in my case I didn’t mounted other vDisks so went for number 1 and did worked for me.

cvhdmount

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