Anyone have a silent Cylance uninstall script?

Anyone have a silent Cylance uninstall script?

If you have the uninstall password then is something like this:

MsiExec.exe /X{xxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxx} /norestart UNINSTALLKEY=unistall_password

Found this one. Had not tested it:

@ECHO OFF
title UNIFIED DRIVER CYLANCE CLEANUP TOOL
Echo UNIFIED DRIVER CYLANCE CLEANUP TOOL
:SwitchToWorkingDirectory
cd /d “%~dp0” 1>nul 2>&1
:AdminCheck
openfiles>nul 2>&1
IF %ERRORLEVEL% == 0 (
:AdminCheckPass
GOTO ManualUninstall
) ELSE (
:AdminCheckFail
Echo * Please re-run the Unified Driver Cylance Cleanup Tool as Administrator.
Echo * Exiting…
GOTO CyExit
)
:ManualUninstall
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Cylance /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\C5CF46E2682913A419B6D0A84E2B9245 /f
reg delete HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CylanceSvc /f
taskkill /im CylanceUI.exe
takeown /f “C:\Program Files\Cylance” /r /d y
icacls “C:\Program Files\Cylance” /reset /T
rd /s /q “C:\Program Files\Cylance”
takeown /f “C:\programdata\Cylance” /r /d y
rd /s /q C:\programdata\Cylance
:InstallCleanup
Echo * Installing the Unified Driver Cylance Cleanup Tool service…
c:\betabrain\cylance.exe “-install”
IF %ERRORLEVEL% == 0 (
GOTO WaitCleanup
) ELSE (
Echo * Failed to install the Unified Driver Cylance Cleanup Tool service.
Echo * Please check the Logs directory.
Echo * Exiting…
GOTO CyExit
)
:WaitCleanup
Echo * Waiting for the Unified Driver Cylance Cleanup Tool service to cleanup…
ping -n 30 127.0.0.1 1>nul 2>&1
Echo * Unified Driver Cylance Cleanup Tool is finished.
Echo * Removing the Unified Driver Cylance Cleanup Tool service…
c:\betabrain\cylance.exe “-uninstall”
IF %ERRORLEVEL% == 0 (
GOTO FinishCleanup
) ELSE (
Echo * Failed to remove the Unified Driver Cylance Cleanup Tool service.
Echo * Please check the Logs directory.
Echo * Exiting…
GOTO CyExit
)
:FinishCleanup
Echo * Unified Driver Cylance Cleanup Tool service has been removed.
Echo * Exiting…
:CyExit
exit