When a script agent is created using Powershell, it only does the first collection and subsequent collections fail but the "Agent Status" shows the agent still running and collecting data.
When the Powershell script is called the Powershell console does not exit in the background preventing any further collections
In the .bat calling script that is used to call the Powershell script use the following syntax:
<full path to powershell executable> powershell –file <Powershell_filename.ps1> < NUL
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center