How to Backup XenDesktop Current DBConnection Strings Using Registry

How to Backup XenDesktop Current DBConnection Strings Using Registry

book

Article ID: CTX140047

calendar_today

Updated On:

Description

This article describes how to backup and restore database connection strings in the registry.


Instructions

Follow the given procedure to setup XenDeskt​op to use a new database or to manually point XenDesktop to a new database.

Complete the following steps on each Desktop Delivery Controller (Controller): 

Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.

  1. Open regedit.exe and backup the following keys:

    HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\XDservices

    HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\DesktopServer\DataStore\Connections\Controller

  1. Right-click on each key and select Export.

    User-added image

    User-added image

  1. To remove the connections, edit the HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\DesktopServer\DataStore\Connections\Controller\ConnectionString key to point to another server or database, or remove it to reset.

    User-added image

  1. Under HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\XDServices\, clear or edit ConnectionString for each service you want to change: 

    User-added image

  1. Restart the Controller(s) or restart the service(s).

    User-added image

  1. After removing the connection strings, welcome message appears:

    User-added image

  1. To restore the previous settings, browse to the .reg files that were previously saved, right-click on the files and select Merge.

  2. After restoring, it points at the original database.

    User-added image

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Issue/Introduction

This article describes how to backup XenDesktop current DBConnection strings using registry.