REM Wait for cloning procedure is completed
sc query plesksrv | find "STATE" | find "RUNNING"
IF %ERRORLEVEL% GTR 0 timeout 60 > NUL
net start plesksrv /Y
timeout 120 > NUL

REM Setup new IP
call "%plesk_bin%\amazon\amazon_repair_ip.cmd"

REM Install Parallels Plesk Panel Micro Updates
"%plesk_bin%\ai.exe" --upgrade-installed-components --select-product-id panel --select-release-current

REM Remove 'Prepare Plesk instance' scheduled task
schtasks /delete /tn "Prepare Plesk instance" /f

schtasks /Change /TN "Prepare Public IP" /ENABLE