Citrix Provisioning Services Agent Installed Successfully. NOT!

One of my colleagues, Henk Hofs, came across this nasty and annoying problem with performing an unattended installation of the Citrix Provisioning Services (PVS) Agent.

When you perform an unattended installation by using whatever ESD solution you have. The log file will tell you that the installation was successful. When you correctly assigned a VHD to the server on which you installed the PVS Agent, the PVS Agent may complain that it does not have a connection to the PVS Server.

You may think, what did I do wrong? Well, maybe nothing.

If you look at the log file of a manual installation of the PVS Agent, you will see the following entries.

CA_LOGGING                    StartDriver – start

CA_LOGGING                    StartDriver – StartService returns=0

CA_LOGGING                    Install – end

If you look at the log file of an unattended installation (through ESD), you will see the following entries.

CA_LOGGING                    StartDriver – start

CA_LOGGING                    Service does not exist – cfsdep2

CA_LOGGING                    Install – end

To fix the issue, cfsdep2.inf has to be installed seperately. To do this unattendedly, execute the following command.

Rundll32.exe setupapi,InstallHinfSection DefaultInstall 129 c:\Program Files\Citrix\Provisioning Services\drivers\cfsdep2.inf

(DO NOT USE QUOTES!!)

The integer 129 represents the option always reboot. This can be changed to any of the following options.

128 – do not reboot

129 – always reboot

130 – always ask user for reboot

131 – reboot if necessary , do not ask user

132 – reboot if necessary, ask user

 

 

You may also like...

2 Responses

  1. Dagfinn says:

    Can you run this “fix” as System, or do you have to run as a local admin?

    • Ivan says:

      I expect that both system and local admin should be able to run the “fix”. We use a service account that has local admin permissions on the target system.

Leave a Reply

Your email address will not be published. Required fields are marked *