Silently uninstall WSS Agent (WSSA) or Unified Agent (UA).
search cancel

Silently uninstall WSS Agent (WSSA) or Unified Agent (UA).

book

Article ID: 167037

calendar_today

Updated On:

Products

Cloud Secure Web Gateway - Cloud SWG

Issue/Introduction

Requirement is SILENTLY uninstall the WSS Agent (WSSA) or Unified Agent (UA).


NOTE: The Unified Agent (UA) for WSS (CloudSWG) is no longer supported.  Instructions below are for legacy installations.

  • UA for WSS went End of Service on: March 31st, 2021
  • See the End of Service FAQ for more details

Environment

This uninstall command is for: 

  • Unified Agent (UA) client v4.4 (or later), and all versions of the WSS Agent (WSSA)

 

Resolution

Obtain the GUID for Agents current version

  1. Open CMD as administrator
  2. 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
  1. The file InstalledPrograms.txt should be saved under the folder location the command was run from. In this case, it is the C:\ drive.
  2. 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.

Command line to uninstall without a token:

MsiExec.exe /X {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /quiet

Command line to uninstall with uninstall TOKEN: 

MsiExec.exe /X {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /quiet UNINSTALL_TOKEN=password