Remove ESET Management Agent / ESET Remote Administrator Agent – Batch File for GPO

I’ve got a customer who used to have an ESET Remote Administrator 6 server, and about 85 computers connected to it. That server was deprecated, but a client task was not initiated to remove the old agent first. So essentially, they ended up with 85 machines with an agent pointing to a dead server.

A new ESET Security Management Center server was deployed, and a new agent installer created. However, because ESET changed the name of the agent, installing the new ESMC agent does not in fact upgrade the old agent. So you either end up with two agents, or just remain with the old one pointing to a non-existent server.

You could go around to every workstation and manually uninstall the ERA agent. But yikes, that’d be brutal. You can’t do it unattended even, because the uninstaller asks for a password.

The customer’s site doesn’t have a password to remove it, so you just push enter. But the prompt still appears.

So I wanted to help them do this via a GPO. After all, what’s the point in having a network if you still have to treat each system as independent?

This command gives me a list of all applications that can be uninstalled. I ran it on my own system and see ESET Management Agent. I have ESMC 7. I ran it on an older system we have here, and it shows “ESET Remote Administrator Agent”. So I wrote a quick batch file to remove either of those two applications.

You can find that batch file here: https://github.com/Cat5TV/eset/blob/master/uninstallers/eset-uninstall-agent.bat

I figure there are probably various names for various versions of the agent, and I’ll add them as I find them.

ESET is currently evaluating my solution, as their support team says they have been encountering this problem more and more and had yet to come up with a solution. I hope it’s able to help some folks.

Robbie // Bald Nerd

13
Leave a Reply

avatar
4 Comment threads
9 Thread replies
3 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
AndyRobbie FergusonDave Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Andy
Guest
Andy

It still shows installed though. Remains installed after reboot also.

Andy
Guest
Andy

I ran as admin

Andy
Guest
Andy

C:\WINDOWS\system32>wmic product where name=”ESET Management Agent” call uninstall /nointeractive
Executing (\\AHERICKS-LAP\ROOT\CIMV2:Win32_Product.IdentifyingNumber=”{3F509AE4-E4F1-4418-B0C2-92766748DC02}”,Name=”ESET Management Agent”,Version=”7.0.577.0″)->Uninstall()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 0;
};

Andy
Guest
Andy

This did not work for me. Did you have to do anything for the blank password in parameters of the uninstall? We have version 7.0.577.0 installed.

Dave
Guest
Dave

Thank’s Robbie, I Have a similar problem & I tried your bat file on my machine, works a treat..Well done