Hi:
I'm trying to automate the agent deployment via script (program). I can't use AD policy or GPO since I have no direct access to that (kindda tough work environment).
Anyway's, the installation works if I just simply execute the advance agent.msi. Once executed the agent would begin to install on the workstation and once installed it will execute the scans on the computer. The problem is, this is all on the local administrative account, so I have a reboot that occur after some interval. This interval is executing before the agent is properly installed and this process failed. Some machines are fast and complete the scans, while slow ones do not.
I need a way to determine when the Agent is properly installed and all scans (inventory/security, or anything else) is completed. I tried to wait for the process Advanceagent.exe to close first, indicating that the agent installation is completed but that's not true for the installation. A reboot after that process goes away aborts the installation.
I could check a specific process or file to appear first to indicate that all installation and scans are completed. Any suggestion?