Endpoint Central Agent Image Deployment

Endpoint Central Agent Image Deployment

We want to deploy the agent on new VM server builds that are built from templates.  I have installed the agent on a template and run the dcagentPreImage VBS but when I deploy from template and run the dcagentpostimage VBS the VM fails to appear in the portal, I have to uninstall the agent and reinstall for it to appear for approval. 

How can I troubleshoot the issue or is there something I am doing wrong.

                  New to ADSelfService Plus?