From bd529a31ac20fa2147a397bf1a67fb947b49f64f Mon Sep 17 00:00:00 2001 From: Paulo Janotti Date: Wed, 29 Nov 2023 11:07:29 -0800 Subject: [PATCH] Fix instructions to uninstall the collector on Windows The alternative instructions are incorrect. Tested the updated ones on my machine. --- gdi/opentelemetry/uninstall-the-collector.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdi/opentelemetry/uninstall-the-collector.rst b/gdi/opentelemetry/uninstall-the-collector.rst index 1a4aab559..4675fe60e 100644 --- a/gdi/opentelemetry/uninstall-the-collector.rst +++ b/gdi/opentelemetry/uninstall-the-collector.rst @@ -258,6 +258,6 @@ Alternatively, try the following commands: .. code-block:: PowerShell - return (Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\uninstall\* | Where { $_.DisplayName -eq "Splunk OpenTelemetry Collector" }) + $MyProgram = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\uninstall\* | Where { $_.DisplayName -eq "Splunk OpenTelemetry Collector" } - $MyProgram.uninstall() \ No newline at end of file + cmd /c $MyProgram.UninstallString