Posted on 07-26-2018 06:10 AM
I am trying to use the the Cylance noui switch with the uninstall script provided in the Uninstall CylancePROTECT.app.
if I do this line /Applications/Cylance/Uninstall CylancePROTECT.app/Contents/MacOS/Uninstall CylancePROTECT --noui as a policy out of Self Service the product uninstalls but it then throws a failed to install message because in the policy logs for the user I get this message.
Result of command:<br/>2018-07-25 12:28:34.432 Uninstall CylancePROTECT[15408:202794] doDeleteMemDefFiles for path /private/tmp/<br/>2018-07-25 12:28:34.500 Uninstall CylancePROTECT[15408:202794] Execution of /bin/rm failed with code 1
If I run the same policy with the uninstall app allowing the UI then I do not see that error being thrown in the policy logs and the uninstall completes successfully. if I check the logs on the machine I can find the same error doDeleteMemDefFiles for path /private/tmp/.
Has anyone seen this and found a resolution?
Posted on 07-26-2018 07:10 AM
How are you running that command? In a script? I guess I would add an 'exit 0' at the end which I think makes JAMF issue a success for the script regardless of other output.
Posted on 08-03-2018 02:44 PM
I'm getting the same errors when I run the command locally in Terminal. I opened up a support request with Cylance. They had me send them the output of an opensnoop trace while I executed the command. They couldn't find what was causing the error(s). They want me to send them some more snoops and run their support tool. However, I haven't got to that point. The command has got to run locally error-free before it can be deployed.
Let me know what you find.
Posted on 03-25-2019 05:26 AM
I am seeing the same thing here. Waiting on support.
Ever figure this out?
Posted on 03-25-2019 11:00 AM
Just checking. Are you unloading the launch daemon first?
launchctl unload /Library/launchdaemons/com.cylance.agent_service.plist
Posted on 03-29-2019 06:58 AM
thanks @Chris_Hafner I haven't tried that yet, but thats exactly what Cylance support got back to me with. Hopefully it works.
sudo launchctl unload /Library/LaunchDaemons/com.cylance.agent_service.plist
sudo rm /Library/Application Support/Cylance/Desktop/registry/LocalMachine/Software/Cylance/Desktop/values.xml
Silent Uninstall
sudo /Applications/Cylance/Uninstall CylancePROTECT.app/Contents/MacOS/Uninstall CylancePROTECT --noui
Posted on 04-23-2021 09:32 AM
@szultzie were you able to get that working?
Posted on 06-16-2021 02:03 PM
I got this working by putting the above Silent Uninstall command in a policy with Files and Processes. It does Uninstall Cylance completely. It does leave the Cylance Uninstall icon in the dock however....
The issue I am seeing now is, for whatever reason, Cylance (1580 version), when installed, Hangs jamf recon at the Locating hardware information line, so recon never completes...
Posted on 07-28-2021 07:57 AM
We are deploying Jamf in our organization and will replace Cylance with Jamf Protect. I'm not real great with scripting. Would anyone be willing to share the scripts they got to work for uninstalling Cylance in the background?