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


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



Ivan de Mes

Ivan de Mes

Ivan de Mes works as an EUC Solution Architect for Login Consultants in The Netherlands. Ivan has over 19 years of experience in delivering workspace solutions at large customers in banking, health care, education and others.

In 2017, 2018 and 2019, Ivan was rewarded with the VMware vExpert status. In 2018, Login VSI rewarded Ivan with the Login VSI Technology Advocate status.


For more information, please read the about page.

You may also like...

4 Responses

  1. Avatar Dagfinn says:

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

    • Ivan 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.

  2. Avatar Chris says:

    Hello Ivan,
    Thanks a lot for sharing this information. I experienced this issue even with the latest 7.15.3 version of PVS that was unattended installed with CloudFactory (from ASG).

    This solved the issue.