We have option to set uninstallation password for windows agent as part of agent profile which gets pulled by agents. If someone having admin rights is trying to uninstall the agent, it ask for uninstallation password. Without feeding right password agent uninstallation activity will not succeed.
Please refer our online help link https://www.sapphireims.com/help/Agent_Configuration.htm