Kaseya Community

Un-Install N-able Agent

  • We used to use the competitor's product (N-able Technologies). This script worked nicely to remove their agent off our client's systems. For those migrating it will save you a lot of time. Kind of ironic using Kaseya to remove the competitor's software. Wink

    Enjoy! (mana please, hehe)



    Script Name: Un-install N-able Agent
    Script Description: Un-install N-able Agent off the computer.

    IF True
    THEN
    Get Variable
    Parameter 1 : 6
    Parameter 2 :
    Parameter 3 : name
    OS Type : 0
    Execute Shell Command
    Parameter 1 : C:\PROGRA~1N-ABLE~1WINDOW~1UNWISE.EXE /Z /S C:\PROGRA~1N-ABLE~1WINDOW~1INSTALL.LOG
    Parameter 2 : 0
    OS Type : 0
    Send Email
    Parameter 1 : support@YourCompany.com
    Parameter 2 : N-able Uninstalled on #name#
    Parameter 3 : Done!
    OS Type : 0
    ELSE



    Legacy Forum Name: Un-Install N-able Agent,
    Legacy Posted By Username: far182
  • Great Job, I have added Mana to your user account. I love it when people come up with scripts and post them!

    Thank you


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: sourceminer
  • I thought i should add to this noble cause. The N-Able software that was installed was some of the most problematic and annoying installations i've ever seen and i was glad to see it go. Here's a script that i'm working on to at least get rid of the basic files and services. I will re-post once i get all of the auto-startup items and everything else in there.

    How much Mana do i get for this one?

    Script Name: Uninstall N-Able Agents
    Script Description: Uninstalls N-Able client software from a machine - Only removes the two main services at the moment - need to work on auto-startup items and other remnants

    IF True
    THEN
    Get Variable
    Parameter 1 : 6
    Parameter 2 :
    Parameter 3 : name
    OS Type : 0
    Execute Shell Command - (Continue on Fail)
    Parameter 1 : C:\PROGRA~1\N-ABLE~1\WINDOW~1\UNWISE.EXE /Z /S C:\PROGRA~1\N-ABLE~1\WINDOW~1\INSTALL.LOG
    Parameter 2 : 1
    OS Type : 0
    Execute Shell Command
    Parameter 1 : net stop SAAZSecAnalyzer
    Parameter 2 : 1
    OS Type : 0
    Execute Shell Command
    Parameter 1 : net stop SaazTool
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : del %windir%\system32\AdminProData\*.*
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : rd %windir%\system32\AdminProData
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : del %windir%\system32\APRemoteInstall\*.*
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : rd %windir%\system32\APRemoteInstall
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : del %windir%\system32\PatchScan\*.*
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : rd %windir%\system32\PatchScan
    Parameter 2 : 0
    OS Type : 0
    Delete Registry Key - (Continue on Fail)
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SAAZSecAnalyzer
    OS Type : 0
    Delete Registry Key - (Continue on Fail)
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SaazTool
    OS Type : 0
    Write Script Log Entry
    Parameter 1 : N-Able Client uninstalled on #name#
    OS Type : 0
    ELSE




    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: elehman
  • I thought i should add to this noble cause. The N-Able software that was installed was some of the most problematic and annoying installations i've ever seen and i was glad to see it go. Here's a script that i'm working on to at least get rid of the basic files and services. I will re-post once i get all of the auto-startup items and everything else in there.

    How much Mana do i get for this one?

    Script Name: Uninstall N-Able Agents
    Script Description: Uninstalls N-Able client software from a machine - Only removes the two main services at the moment - need to work on auto-startup items and other remnants

    IF True
    THEN
    Get Variable
    Parameter 1 : 6
    Parameter 2 :
    Parameter 3 : name
    OS Type : 0
    Execute Shell Command - (Continue on Fail)
    Parameter 1 : C:\PROGRA~1\N-ABLE~1\WINDOW~1\UNWISE.EXE /Z /S C:\PROGRA~1\N-ABLE~1\WINDOW~1\INSTALL.LOG
    Parameter 2 : 1
    OS Type : 0
    Execute Shell Command
    Parameter 1 : net stop SAAZSecAnalyzer
    Parameter 2 : 1
    OS Type : 0
    Execute Shell Command
    Parameter 1 : net stop SaazTool
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : del %windir%\system32\AdminProData\*.*
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : rd %windir%\system32\AdminProData
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : del %windir%\system32\APRemoteInstall\*.*
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : rd %windir%\system32\APRemoteInstall
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : del %windir%\system32\PatchScan\*.*
    Parameter 2 : 0
    OS Type : 0
    Execute Shell Command
    Parameter 1 : rd %windir%\system32\PatchScan
    Parameter 2 : 0
    OS Type : 0
    Delete Registry Key - (Continue on Fail)
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SAAZSecAnalyzer
    OS Type : 0
    Delete Registry Key - (Continue on Fail)
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SaazTool
    OS Type : 0
    Write Script Log Entry
    Parameter 1 : N-Able Client uninstalled on #name#
    OS Type : 0
    ELSE




    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: elehman

  • Awesome! The N-able problems generated by their own agent applications during our demo, is what ultimately convinced us to choose Kaseya over N-able. This will be nice to clean up after them :-D


    Legacy Forum Name: System Administration Scripts,
    Legacy Posted By Username: vchurch