19 Sep 2019 09:52 AM
Hello
Does anyone has a script of uninstalling One Agent via the command line ?
Thank you
Solved! Go to Solution.
19 Sep 2019 10:05 AM
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
19 Sep 2019 11:12 AM
Thank you so much for your answer that was really helpfull
20 Sep 2019 01:10 PM
Should that not be msiexec /uninstall /x <OneAgent product code | Product.msi> ??
20 Sep 2019 01:14 PM
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.