Attention : support for WAPT 1.8.2 ended on June the 30th 2022.

There are known vulnerabilities in WAPT dependencies in WAPT 1.8.2 branch. Please upgrade to the latest supported version. CVE listing (non exhaustive) :
  • * python engine : python 2.7 (CVE-2020-10735, CVE-2015-20107, CVE-2022-0391, CVE-2021-23336, CVE-2021-3177, CVE-2020-27619, CVE-2020-26116, CVE-2019-20907, CVE-2020-8492, etc.)
  • * cryptography : openssl : CVE-2022-2068, CVE-2022-1292, CVE-2022-0778, CVE-2021-4160, CVE-2021-3712, CVE-2021-23841, CVE-2021-23840, CVE-2021-23839, CVE-2020-1971, CVE-2020-1968, CVE-2019-1551
  • * python dependencies : cryptography (CVE-2020-36242, CVE-2020-25659), eventlet (CVE-2021-21419), jinja2 (CVE-2020-28493), psutil (CVE-2019-18874), waitress (CVE-2022-31015), lxml (CVE-2021-4381, CVE-2021-28957, CVE-2020-27783, CVE-2018-19787), ujson (CVE-2022-31117, CVE-2022-31116, CVE-2021-45958), python-ldap (CVE-2021-46823)

Uninstalling WAPT agent from clients

Uninstalling WAPT agent on Windows

If you need to uninstall WAPT agents from clients, the uninstaller is automatically created in the WAPT install location, by default it is C:\Program Files (x86)\wapt\unins000.exe.

  • default silent uninstall of a WAPT agent can be achieved with the following command:

    unins000.exe /VERYSILENT
    
  • an additional argument can be passed to unins000.exe to cleanup everything:

    unins000.exe /VERYSILENT /purge_wapt_dir=1
    

Complete list of command-line arguments for unins000.exe:

Settings

Description

/VERYSILENT

Launches unins000.exe silently

/purge_wapt_dir=1

Purges WAPT directory (removes all folders and files)

Uninstalling a WAPT agent on Linux

  • default uninstall of a WAPT agent can be achieved with the following command, depending on your Linux OS:

    # Debian / Ubuntu
    apt remove --purge tis-waptagent
    
    # CentOS / Redhat
    yum remove tis-waptagent
    
  • an additional step can be done using these commands (WIP):

    rm -f /opt/wapt/
    
    # Debian / Ubuntu
    rm /etc/apt/sources.list.d/wapt.list
    
    # CentOS / Redhat
    rm /etc/yum/yum.repos.d/wapt.list
    

Uninstalling a WAPT agent on MacOS

  • default uninstall of a WAPT agent can be achieved with the following command:

    # List all files to delete
    pkgutil --only-files --files com.tranquilit.tis-waptagent-enterprise > file_list
    
    # Remove packages
    sudo pkgutil --forget com.tranquilit.tis-waptagent-enterprise
    

Re-enabling Windows Updates before uninstalling

In the case you have used WAPT to manage Windows Updates, you might want to re-enable Windows Updates default behavior before uninstalling the WAPT agent.

To do so, here is an example package to push before uninstalling the WAPT agent:

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print('Disable WAPT WUA')
    inifile_writestring(WAPT.config_filename,'waptwua','enabled','false')

    print('DisableWindowsUpdateAccess registry to 0')
    registry_set(HKEY_LOCAL_MACHINE,r'Software\Policies\Microsoft\Windows\WindowsUpdate','DisableWindowsUpdateAccess',0,REG_DWORD)

    print('AUOptions registry to 0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update','AUOptions',0,REG_DWORD)

    print('Enable wuauserv')
    run_notfatal('sc config wuauserv start= auto')
    run_notfatal('net start wuauserv')