Unable to run "Uninstall.bat" File to remove agent and unenroll device

Solved Locked
JB
Jeff Burns
Aclara (formerly Smart Grid Solutions, LLC)

I can't seem to successfully execute the Uninstall.bat file from the MobiControl folder.

I receive this error message:

Any help is greatly appreciated! 

Edited 4 years ago
Windows
ANSWERS
D
DDMOD@SOTI
5 years ago

Hi Jeff,

You need to manually delete that device from the cloud web UI to remove it permanently.

Solution
MD
Matt Dermody
5 years ago

I don't have any experience managing Windows devices with SOTI but I feel like logically it would make sense that you can't manually delete or uninstall MobiControl from a machine that you are managing. You might have better luck Unenrolling the device from the MobiControl console than trying to manually remove the agent from the device. I would consider that a pretty big vulnerability if you could just manually uninstall it. 

D
DDMOD@SOTI
5 years ago (edited 5 years ago)

Hi Jeff,

Thank you for requesting a response from SOTI Support Staff.

It's been a while since I had to "remove the agent and unenroll" a Windows desktop but right off the bat try running CMD with elevated privileges (Administrator).

Also, you may have to open CMD and navigate to the folder the file is located in to execute the file.   Let me know if that works or not and I will double-check on any other instructions needed to perform the task you require. 

Hope this helps, 

JB
Jeff Burns
5 years ago

Thank you for your support!

I had tried to run as Administrator but that's what originally lead to this error message.

I have found a solution though.  I created a bat file that when ran as Administrator calls the Uninstall.bat from the MobiControl folder.

@echo on

cd "C:\Program Files (x86)\SOTI\MobiControl\"
Call "Uninstall.bat"

From here it performs the full uninstall on the device.  But on the cloud web UI only shows the device as "Unenrolled" and does not remove it which is another bump I'm trying to get over.

J
JVMOD@SOTI
4 years ago

Hello Jeff,


Following up on this thread, were you able to resolve the issue? If yes, I would like to know if the post from DDMOD@SOTI has helped you in solving your inquiry, I would request you to mark the particular comment as "is solution", so others may benefit from this information.


Regards,