From 65940eb0843ea7585960a29837a3e9635ca5edd1 Mon Sep 17 00:00:00 2001 From: Carlos Matos Date: Tue, 21 Mar 2023 09:17:43 -0400 Subject: [PATCH] Made check for already installed sensor more descriptive with exit 0 (#144) --- powershell/install/falcon_windows_install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powershell/install/falcon_windows_install.ps1 b/powershell/install/falcon_windows_install.ps1 index 37abf75..365c59b 100755 --- a/powershell/install/falcon_windows_install.ps1 +++ b/powershell/install/falcon_windows_install.ps1 @@ -297,9 +297,9 @@ process { Exit 0 } elseif (Get-Service | Where-Object { $_.Name -eq 'CSFalconService' }) { - $Message = "'CSFalconService' running" + $Message = "'CSFalconService' running. Falcon sensor is already installed." Write-FalconLog 'CheckService' $Message - throw $Message + exit 0 } else { if (!$FalconClientId) {