You want to automate the process of robot removal from the windows system.
Release : 20.x (Any supported UIM release)
This article is informational.
These commands can be used as a script to automate the process:
sc stop NimbusWatcherService
sc delete NimbusWatcherService
"C:\Windows\System32\REG" DELETE HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4337A496-6773-4624-985F-E203E1D08CC9} /f
rmdir /s /q <ROBOT> i.e. rmdir /s /q "C:\Program Files\Nimsoft"
This process will not completely decommission the robot from UIM but it will only remove the robot software from the Windows system. For completely removing the system from UIM see: Remove / Decommission Robots or HUBs from UIM (broadcom.com)