Created Date: Apr 4, 2016
Updated Date: Apr 15, 2024
Please provide feedback to https://forms.gle/TwWrKPT6J8u7GdKA6 to help us improve the tool.
What's New in v1.11.0.32
Added support for cleaning up the following versions of VDAs:
The initial release of the 2402 LTSR
Changes from Previous Versions
Added an option to uninstall VDAs without uninstalling the Citrix Workspace Environment Management Agent.
Updated the log folder of the tool from %temp%\Citrix\VDACleanup to %programdata%\Citrix\VDACleanup to prevent log loss.
The most recent 2,500 application and system event logs can be saved in this log folder.
Improved logging by capturing more data in CleanupToolLog.txt.
Description
The VDA cleanup utility assists with the following scenarios:
Important Notes
For all users:
Supported Operating Systems
Supported server OS versions
Supported desktop OS versions (32- and 64-bit unless noted):
*For Windows 10 machines, the following servicing options and editions are supported:
Prerequisites
To run the tool, you must have administrator privileges on the target machine.
Required Security Permissions
Read, write, and modify permissions are required for the following:
How to Use the VDA Cleanup Utility
The VDA cleanup utility is a standalone executable file and does not require installation.
Caution: Always back up the registry. Although the VDA cleanup utility backs up VDA registry keys before deleting them, Citrix recommends that you back up the registry first. See Microsoft article How to back up and restore the registry in Windows for information on backing up the registry.
Steps:
Note:
You can run the VDA cleanup utility by using different options:The /silent option | C:/>VDACleanupUtility.exe/silent | You can run the VDA cleanup utility in silent mode by using the /silent option. In silent mode, the tool restarts the system automatically. Log on to the machine with the same administrator account. The tool automatically reruns. |
The /NoReboot option | C:/>VDACleanupUtility.exe /NoReboot | You can suppress an automatic system restart by using the /NoReboot option. However, Citrix recommends that you restart the machine before attempting to re-install the VDA. |
The /unattended option | C:/>VDACleanupUtility.exe /unattended | You can run the VDA cleanup utility in unattended mode by using the /unattended option. In unattended mode, the utility uninstalls the VDA without any prompt and suppresses the system restart. Depending on the exit code (1 or 0), you might or might not have to restart the system manually: Exit code 1: Restart the system manually and execute the command again. Exit code 0: The VDA cleanup is complete. |
The /skipwem option | C:/>VDACleanupUtility.exe /skipwem | With the /skipwem option, the VDA cleanup utility uninstalls the VDA without uninstalling the Citrix Workspace Environment Management Agent. |
Log Files for the VDA Cleanup Utility
Log files for the VDA cleanup utility are created in the %VCUOutput%\Citrix\VdaCleanupfolder and can be used to track all uninstall actions and results.
Note: Starting from version 2.0, %VCUOutput% refers to %programdata%, but if the tool user doesn't have access to %programdata%, %VCUOutput% still refers to %Temp%.
Data Modified by the VDA Cleanup Utility
The utility terminates all running VDA processes (if any) after using the standard metainstaller uninstall process. See the Readme file included with the tool for a list of items that are removed during the cleanup process.
How to Undo the Changes Made by the VDA Cleanup Utility
The VDA cleanup utility creates a backup of Citrix registry keys related to the VDA in the %TEMP%\Citrix\VdaCleanup\RegBackup.reg file before running any cleanup and deletion process.
To undo the changes:
Uninstalling the VDA Cleanup Utility
Delete the downloaded executable from the current folder and delete the log files from the %TEMP%\Citrix\VdaCleanup folder.
Known Issues
Failure Type | Description | Possible Corrective Action |
Uninstall | If the VDA is not installed at the default location, the VDA cleanup utility might not work properly. | This is a known issue with the current version of the tool and will be addressed in a future release. |
Install | Downgrading to an earlier version of the VDA can result in a reinstallation error. The cause is that the VDA cleanup utility does not remove the Microsoft Visual C++ runtime required by the VDA. Microsoft Visual C++ runtime can differ depending on the VDA version being installed. | Manually uninstall the later versions of Microsoft Visual C++ runtime before reinstalling an earlier version of the VDA. See VDA prerequisites to determine the required version of Microsoft Visual C++ runtime. |
Install | Downgrading to an earlier version of the VDA can result in a reinstallation error. The cause is that the VDA cleanup utility does not remove the Microsoft .Net Framework required by the VDA. Microsoft .Net Framework can differ depending on the VDA version being installed. | Manually uninstall the later version of Microsoft .Net Framework before reinstalling an earlier version of the VDA. See VDA prerequisites to determine the required version of Microsoft .Net Framework. |
Registration | The C:\ProgramData\Citrix\PvsAgent folder is not removed when manually removing the VDA using Program and Features or the VDA cleanup utility. As a result, the VDA might fail to register if moved to another Site (from Site 1 to Site 2). | Follow the steps listed in the Citrix Product Documentation page. |
Uninstall | Attempts to log on as a different user to a Desktop VDA with AutoAdminLogon enabled, after the utility initiates a restart, can cause the VDA not to be removed properly. | Allow the removal process to complete before attempting to log on as a different user. |
Uninstall | Allowing multiple session logons to a Server VDA with AutoAdminLogon enabled, after the utility initiates a restart, can cause the VDA not to be removed properly. | Allow the removal process to complete before allowing multiple session logon. |
Uninstall |
Not restarting the operating system when prompted by the tool might result in the VDA not being properly removed. Additionally, future attempts to reinstall the same or a later version of the VDA without restarting, might result in an installation error. | When prompted to, restart the VDA as recommended by the utility. |
Uninstall | When you install a Windows VDA on a machine where you have a Delivery Controller installed, running the VDA cleanup utility removes the following registry keys. As a result, Citrix Studio shows only the automatic site upgrade option instead of the regular console. After you click the upgrade button, the following error message appears: You do not have the permissions required to complete this request
| Back up the registry keys and restore them manually after uninstalling the VDA by using the VDA cleanup utility. |
Disclaimer
These software applications are provided to you as is with no representations, warranties or conditions of any kind. You may use and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the software application may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the software application fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software application. In no event should the code be used to support of ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SOFTWARE APPLICATION, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the code.
Please note:
You can download the required file from the Citrix downloads website by visiting the following link: https://www.citrix.com/downloads/citrix-tools