Hi @knuth
Please refer below procedure to automate patch agent installation
https://forum.mspconsortium.com/forum/script-library/10298-procedure-to-install-comodo-patch-management-agent-and-allow-it-in-firewall