Forum Discussion
Manually uninstall the Azure ATP sensor
I had a similar issue with another customer back than, the new sensor will know how to handle this case better, but if you are still stuck with the old version, the only way to uninstall it,
is to copy the binary exe from another sensor, and register the service manually so the uninstall can find it. (the new code should not fail if it does not find it).
sc create AATPSensor binPath= "C:\Program Files\Azure Advanced Threat Protection Sensor\XXXXXX\Microsoft.Tri.Sensor.exe"
where XXXXXX is the exact number of the version we try to uninstall, for example: 2.39.5033.27241
Once you have that, you can try to uninstall again (don't need to actually run the service).
Let me know how it goes.
EliOfek This worked for me. I had to run that command with the old version and then copy another folder in C:\Program Files\Azure Advanced Threat Protection Sensor (there were newer version folders in there) and rename the folder to the old version number then I was able to fully uninstall and reinstall the sensor.