REM ================================================================================= REM ===== Update "PU" (path to pu.exe) to fit your environment. ===================== REM ===== Update "UIMPASS" (password) to fit your envirnment. ======================= REM ================================================================================= ROBOT_LIST=robot_list.txt ROBOT_CSKEY_LIST=robot_cskey_list.txt set PU="C:\Program Files (x86)\Nimsoft\bin\pu.exe" set UIMUSER=administrator set UIMPASS=password for /f %%a in (%ROBOT_LIST%) do ( %PU% -u %UIMUSER% -p %UIMPASS% %%a/controller _nis_cache_clean NULL NULL %PU% -u %UIMUSER% -p %UIMPASS% %%a/controller _reset_device_id_and_restart NULL ) for /f %%b in (%ROBOT_CSKEY_LIST%) do ( %PU% -u %UIMUSER% -p %UIMPASS% discovery_server remove_master_devices_by_cskeys %%b ) REM =================================================================================