Unified Agent (UA) client v4.4 (or later), and all versions of the WSS Agent (WSSA)
Resolution
Obtain the GUID for Agents current version
Open CMD as administrator
Run the following command
For UA ---- C:\>wmic product get | findstr "Unified Agent" > InstalledPrograms.txt For WSSA ---- C:\>wmic product get | findstr "WSSA" > InstalledPrograms.txt
The file InstalledPrograms.txt should be saved under the folder location the command was run from. In this case, it is the C:\ drive.
In output of the this file is:
Look for Product Code which is made up of string GUIDs containing numbers and uppercase letters. {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
We can use this product code to run below uninstallation commad.