Hello
Does anyone has a script of uninstalling One Agent via the command line ?
Thank you
Solved! Go to Solution.
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.