I'm having an issue where the zac reg command and zac unr takes forever to complete. How long should these commands take to complete? If I exit out of zac reg after 20 seconds it still connects and says managed in the agent properties.

I currently have a bunch of machines that were some how dropped from zen10 and using the zac reg command brings them back.

I created the following batch scrip to check and re-reg them if there not managed:

@echo off
FOR /F "tokens=*" %%A IN ('zac zc -l ^| find /i /c "Status: Active"') DO SET act=%%A
if %act% == 1 (
) else (
zac reg -u *user* -p *password* http://*server*