From 15341aba1b9bf8c6798e60628bc20ce5ebde5e3d Mon Sep 17 00:00:00 2001 From: dyoder Date: Fri, 9 Jul 2021 21:02:44 -0400 Subject: [PATCH] added script --- Uninstall-NCentralComponents.ps1 | 9 +++++++++ rmm/Uninstall-NCentralComponents.ps1 | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 Uninstall-NCentralComponents.ps1 create mode 100644 rmm/Uninstall-NCentralComponents.ps1 diff --git a/Uninstall-NCentralComponents.ps1 b/Uninstall-NCentralComponents.ps1 new file mode 100644 index 0000000..ab4fadb --- /dev/null +++ b/Uninstall-NCentralComponents.ps1 @@ -0,0 +1,9 @@ +If ( Test-Path "${Env:ProgramFiles(x86)}\MspPlatform\PME\unins000.exe" ) { + LogMsg "Uninstalling N-Central Patch Management Service Controller" + Start-Process "${Env:ProgramFiles(x86)}\MspPlatform\PME\unins000.exe" -ArgumentList "/SILENT" -Wait +} + +If ( Test-Path "${Env:ProgramFiles(x86)}\MspPlatform\FileCacheServiceAgent\unins000.exe" ) { + LogMsg "Uninstalling N-Central File Cache Service Agent" + Start-Process "${Env:ProgramFiles(x86)}\MspPlatform\FileCacheServiceAgent\unins000.exe" -ArgumentList "/SILENT" -Wait +} \ No newline at end of file diff --git a/rmm/Uninstall-NCentralComponents.ps1 b/rmm/Uninstall-NCentralComponents.ps1 new file mode 100644 index 0000000..4c89383 --- /dev/null +++ b/rmm/Uninstall-NCentralComponents.ps1 @@ -0,0 +1,2 @@ +. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) +Run-Script -LivePSScript Uninstall-NCentralComponents \ No newline at end of file