cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

One Agent uninstall Windows

service_apms
Organizer

Hello

Does anyone has a script of uninstalling One Agent via the command line ?

Thank you


4 REPLIES 4

bartosz_pollok
Dynatrace Enthusiast
Dynatrace Enthusiast

Hello,

You can uninstall OneAgent via the command line using command:

msiexec /x <OneAgent product code>

The product code can be retrieved using WMI utility:

wmic product where name='Dynatrace OneAgent' get IdentifyingNumber

This will return proper product identifier for your current OneAgent installation, which you should pass to former command to uninstall the OneAgent. You can place these two commands into a batch script and run it using elevated rights.

Regards,

Bartek


Thank you so much for your answer that was really helpfull


Should that not be msiexec /uninstall /x <OneAgent product code | Product.msi> ??


As far as I know, there's no such thing as "/uninstall" switch for msiexec. "/x" is used for uninstalling MSI packages, see: https://docs.microsoft.com/en-gb/windows/win32/msi/command-line-options.


Featured Posts