From b31d7f3cde6c908567f32e8183b4395df9286f54 Mon Sep 17 00:00:00 2001 From: dyoder Date: Fri, 9 Jul 2021 21:21:47 -0400 Subject: [PATCH] added removal of n-able program file directory and registry entry --- Uninstall-NCentralComponents.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Uninstall-NCentralComponents.ps1 b/Uninstall-NCentralComponents.ps1 index 93fe941..0388c88 100644 --- a/Uninstall-NCentralComponents.ps1 +++ b/Uninstall-NCentralComponents.ps1 @@ -20,4 +20,16 @@ If ( Test-Path "${Env:ProgramFiles(x86)}\MspPlatform" ) { LogMsg "Forcefully removing ""${Env:ProgramFiles(x86)}\MspPlatform""" Try { Remove-Item "${Env:ProgramFiles(x86)}\MspPlatform" -Recurse -Force } Catch { LogErr $_.Exception.Message } +} + +If ( Test-Path "${Env:ProgramFiles(x86)}\MspPlatform" ) { + LogMsg "Forcefully removing ""${Env:ProgramFiles(x86)}\N-able Technologies""" + Try { Remove-Item "${Env:ProgramFiles(x86)}\N-able Technologies" -Recurse -Force } + Catch { LogErr $_.Exception.Message } +} + +If ( Test-Path "HKLM:SOFTWARE\N-able Technologies" ) { + LogMsg "Forcefully removing ""HKLM:SOFTWARE\N-able Technologies""" + Try { Remove-Item "HKLM:SOFTWARE\N-able Technologies" -Recurse -Force } + Catch { LogErr $_.Exception.Message } } \ No newline at end of file