[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 944
  • Last Modified:

Kaspersky remote uninstall failing

I am attempting to use the Kaspersky Security Center (KSC) to uninstall Endpoint Security 10 from client PCs.  Some of the computers fail with this message:

Remote uninstallation on client computer completed with error: Fatal error during uninstallation. (Msg=The selected folder or drive already contains files. The application cannot be installed to a folder that contains other data, because this data can become unavailable after Self-Defense is enabled.|CAERRORCLASS=31)

Searching on this I mostly found it as an error when trying to do an install.  The only suggested fix I've found so far is to manually remove a folder from the client.  I'm trying to find a solution that won't require touching each workstation.
0
STS-Tech
Asked:
STS-Tech
  • 2
1 Solution
 
STS-TechAuthor Commented:
Update on this- I've discovered the same message is produced when running the local uninstall from Control Panel.  Summary- KSC uninstaller was not to blame.  Moving on to a new test subject and will return to further troubleshoot the first afterwards.

Any input to the cause of that error would still be appreciated.
0
 
Sudeep SharmaTechnical DesignerCommented:
Can't you remove that file\folder remotely from a server?

  1. Create batch file to delete the folder.
  2. Use psexec to run the batch file to the remote computer or computers

Batch file example, assuming you wanted to delete a folder named C:\Program Files\KasperSky\Bin. Change the path of the folder as necessary.

IF EXIST %ProgramFiles%\KasperSky\bin\ del /f /s /q %ProgramFiles%\KasperSky\bin

Open in new window



Save the above in the file, lets say KAVDel.bat on C:\ root.

Below should be the command to run this on remote computer.

PsExec.exe \\REMOTECOMPUTER -c c:\KAVDel.bat

Open in new window

Replace the REMOTECOMPUTER with the real hostname or IP address of the host.

If you wanted to include the adminstrator's username and password the command would become
PsExec.exe \\REMOTECOMPUTER -u ad\domainadmin -p password -c c:\KAVDel.bat

Open in new window


If you have list of system where you wanted to run it, then command would become
PsExec.exe @C:\list.txt -u ad\domainadmin -p password -c c:\KAVDel.bat

Open in new window


Assuming the list of system are in list.txt which is on C:\ drive.

Let us know if you would still need more help.

Sudeep
0
 
STS-TechAuthor Commented:
Thanks for the information, Sudeep.  For that particular workstation we used the kavremover.exe.  We are currently running the uninstallation from KSC for the other sites and if we run into that same error, I will be employing your method.  I like the list aspect which will allow us to run on several workstations at once.
0

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now