Solved

Kaspersky remote uninstall failing

Posted on 2016-08-09
3
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 30

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

PREFACE The purpose of this guide is to provide information to successfully install the MS SQL client tools for the Symantec Endpoint Protection Manager (SEPM) to function properly when installed on Windows 2008. AUDIENCE Information Technology…
If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

726 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