First of all i downloaded rdpy from here: https://github.com/citronneur/rdpy
Now i create a .bat script to run over 2000 servers, something like this:
Code:
rdpy-rdpscreenshot.py -w 1024 -l 800 -o C:/tmp/ 23.228.142.165
rdpy-rdpscreenshot.py -w 2000 -l 1200 -o C:/tmp/ 63.248.225.81
rdpy-rdpscreenshot.py -w 1024 -l 800 -o C:/tmp/ 24.73.34.125
rdpy-rdpscreenshot.py -w 1024 -l 800 -o C:/tmp/ 63.249.40.114
here a succesull line: https://pastebin.com/XqWpn3RU
here that error,the problem is batch not progressin anymore, stops to that line with this error: https://pastebin.com/daRqSV0Y

i used a small tool to compare the 2 files and the diference is this:
Code:
rdpy.core.error.RDPSecurityNegoFail: negotiation failure code 5[*] INFO:       save screenshot into C:/tmp/24.73.34.125.jpg
My question is how to close,pass,jump,skip when rdpscreenshot finds that lines?