No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>


To have a better experience, please upgrade your IE browser.


How to manually restore faulty DDC

Publication Date:  2015-04-29 Views:  71 Downloads:  0
Issue Description
System version: V1R2C01 Mini-VDI C86SPC100
The customer delete the DDC component in VDS-MGR server by mistake,all the users can't use their VM.
Alarm Information
There was an alarm on OMSportal "DDC service is abnormal".
Handling Process
Here is the step describe how to manually restore the DDC service.

1: Log in to the DDC server using VNC as a domain user.
for example, vdesktop\vdimanager.
Copy the XenDesktop5.5 installation package to the DDC (VDS-MGR) server.
2: Open the package folder, and double-click AutoSelect.exe.

The XenDesktop window is displayed about 2 minutes later.

3: Click Install XenDesktop.
The Licensing Agreement window is displayed about 40 seconds later.
Select I accept the terms and conditions, and click Next.
The Select Components to Install window is displayed.
Select the options shown in below Figure , and click Next.

4: Click Install.
It takes about 15 minutes to install the DDC components.

5: Click Close.
The XenDesktop window is closed. After about 3 minutes, the Citrix Desktop Studio window is displayed.

6: Copy the Hotfixs software package to the DDC server.
Install Broker_Service_X64.msi and Broker_PowerShellSnapIn_X64.msi contained in the Hotfixs software package as prompted.
During the installation, parameter configuration is not required.

7: Open the "regedit" of the DDC server, find below location:
and copy the value of the key ConnectionString,for example “;Initial Catalog = XenDesktop01; Integrated Security = True; Failover Partner =”

8: Open powershell in DDC server, execute below commands in powershell :
Add-PSSnapin Citrix.*
Set-ConfigDBConnection -DBConnection $null
Set-AcctDBConnection -DBConnection $null
Set-HypDBConnection -DBConnection $null
Set-ProvDBConnection -DBConnection $null
Set-PvsVmDBConnection -DBConnection $null
Set-BrokerDBConnection -DBConnection $null

9: Execute below commands in powershell,modify the red part as recorded on step 7.
Set-ConfigDBConnection -DBConnection "Server= <dbserver>;Database= <dbname>;Trusted_Connection=True"
Set-AcctDBConnection -DBConnection " Server= <dbserver>;Database= <dbname>;Trusted_Connection=True "
Set-HypDBConnection -DBConnection " Server= <dbserver>;Database= <dbname>;Trusted_Connection=True "
Set-ProvDBConnection -DBConnection " Server= <dbserver>;Database= <dbname>;Trusted_Connection=True "
Set-PvsVmDBConnection -DBConnection " Server= <dbserver>;Database= <dbname>;Trusted_Connection=True "
Set-BrokerDBConnection -DBConnection " Server= <dbserver>;Database= <dbname>;Trusted_Connection=True "

10: Modify the register port number for VDA.
After installation,the default port number for VM register is 80,we need change to 8080.
Open cmd,
cd C:\Program Files\Citrix\Broker\Service,
run command brokerservice.exe –show to check the  register port number for VDA
run command brokerservice.exe -vdaport 8080 to change the port number.

11: Restart ICA service in the user VM to register to DDC,then use WI to login the VM,the service was restored.
Root Cause
The customer delete the DDC component in VDS-MGR server by mistake,so all the users can't use their VM.
But the database for the DDC is OK.
After we deliver the system to the customer,we need to give the customer technical training about how to correctly use the system,and ask the customer don't do any dangerous operation on the management server.