1. Home
  2. SureMDM
  3. How to restrict the end user with admin access from uninstalling the SureMDM nix agent on the Windows machine?
  1. Home
  2. Windows Management
  3. How to restrict the end user with admin access from uninstalling the SureMDM nix agent on the Windows machine?

How to restrict the end user with admin access from uninstalling the SureMDM nix agent on the Windows machine?

KB ID: 42G2202053
Views: 382
Updated: February 2022

When an end user with admin access is provided with a windows machine with suremdm nix agent installed , how do we prevent this user from uninstalling the nix agent . 

Step 1: Launch command prompt as administrator

  • Click the Start buttonand type in Command Prompt, and then select it from the list when it appears.
  • If you right-click Command Promptand select Run as administrator 


    Note: – If prompted with User Account Control pop up as shown below, click on yes.

Step 2: Script to block uninstallation

  •   On the command prompt run the below script which would change the name of the nix agent uninstall file thus blocking the uninstallation of nix agent by the user with admin access.
ren "C:\Program Files (x86)\42Gears\Nix Agent\unins000.exe" 42Gears_App

Step 3: Script to unblock uninstallation

  • On the command prompt run the below script which would change the name of the nix agent uninstall file thus unblocking the uninstallation of nix agent.
ren "C:\Program Files (x86)\42Gears\Nix Agent\42Gears_App" unins000.exe

Step 4: Uninstall the nix agent 

  • When you would want to uninstall the nix agent make sure step 3 is followed and then navigate to the below file location on the device and double-click on the file unins000.exe and execute the same.

    File Location: C:\Program Files (x86)\42Gears\Nix Agent\

If you need further assistance, please submit a ticket here  

Related Articles