Solved

Kaspersky remote uninstall failing

Posted on 2016-08-09
3
145 Views
Last Modified: 2016-08-10
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
Comment
Question by:STS-Tech
  • 2
3 Comments
 
LVL 2

Author Comment

by:STS-Tech
ID: 41749066
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
 
LVL 29

Accepted Solution

by:
Sudeep Sharma earned 500 total points
ID: 41749085
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
 
LVL 2

Author Closing Comment

by:STS-Tech
ID: 41750348
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PREFACE The purpose of this guide is to explain what the SEPC Status Utility is and how it works. I have written the utility using AutoIt and have included the source code for your review. You are welcome to modify the code to your liking, but I wi…
Have you ever tried to find someone you know on Facebook and searched to find more than one result with the same picture? Perhaps someone you know has told you that they have a 'facebook stalker' or someone who is 'posing as them' online and ta…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now