Files
management-scripts/Uninstall-NCentralComponents.ps1
T

35 lines
1.7 KiB
PowerShell
Raw Normal View History

2021-07-09 21:02:44 -04:00
If ( Test-Path "${Env:ProgramFiles(x86)}\MspPlatform\PME\unins000.exe" ) {
LogMsg "Uninstalling N-Central Patch Management Service Controller"
Try { Start-Process "${Env:ProgramFiles(x86)}\MspPlatform\PME\unins000.exe" -ArgumentList "/SILENT" -Wait }
Catch { LogErr $_.Exception.Message }
2021-07-09 21:02:44 -04:00
}
If ( Test-Path "${Env:ProgramFiles(x86)}\MspPlatform\FileCacheServiceAgent\unins000.exe" ) {
LogMsg "Uninstalling N-Central File Cache Service Agent"
Try { Start-Process "${Env:ProgramFiles(x86)}\MspPlatform\FileCacheServiceAgent\unins000.exe" -ArgumentList "/SILENT" -Wait }
Catch { LogErr $_.Exception.Message }
2021-07-09 21:06:13 -04:00
}
If ( Test-Path "${Env:ProgramFiles(x86)}\MspPlatform\RequestHandlerAgent\unins000.exe" ) {
LogMsg "Uninstalling N-Central Request Handler Agent"
Try { Start-Process "${Env:ProgramFiles(x86)}\MspPlatform\RequestHandlerAgent\unins000.exe" -ArgumentList "/SILENT" -Wait }
Catch { LogErr $_.Exception.Message }
}
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 }
2021-07-09 21:02:44 -04:00
}