add guid based agent uninstall

This commit is contained in:
2021-07-29 19:05:08 -04:00
parent c2665c2f10
commit 88e4e957d2
+5
View File
@@ -28,6 +28,11 @@ If ( Test-Path "${ProgramFiles(x86)}\N-able Technologies\Windows Software Probe\
Catch { LogErr $_.Exception.Message }
}
## Remove Windows Agent
LogMsg "Attempting to uninstall N-Central Windows Agent"
Try { Start-Process "msiexec.exe" -ArgumentList "/X{F5873D07-85EE-4010-A461-B60989884B1C}" -Wait }
Catch { LogErr $_.Exception.Message }
## Remove NablePatchRepositoryService
$ServiceName = "NablePatchRepositoryService"
$Service = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue