Solved

Kaspersky remote uninstall failing

Posted on 2016-08-09
3
98 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

12 Steps to a more secure Internet experience (http://tekblog.teksquisite.com/) Everyone who is a licensed driver initially had to pass a driving test that consisted of taking:    1. a written test    2. a road test    3. a vision test Le…
UPDATE - 6/15/2011 Added support for Release Update 6 Maintenance Patch 2 Point Patch 1 (RU6 MP2 PP1). Fixed a defect in the username field that was hard-coded to look for a specific domain (left over code from testing). This release will be the …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

9 Experts available now in Live!

Get 1:1 Help Now