Hello @Simon Rousing Berg
If a script does not run or runs with lag, for example, because a target device is turned off during the one-hour time period, you must run it again.
If the problem still persists, then move to the next step
After you have initiated running a script on a collection of devices, use the following procedure to monitor the operation. You are able to monitor a script in real-time as it executes, and later return to the status and results for a given Run Script execution.
- In the Configuration Manager console, click Monitoring.
- In the Monitoring workspace, click Script Status.
- In the Script Status list, you view the results for each script you ran on client devices. A script exit code of 0 generally indicates that the script ran successfully.
This will give you a detailed idea about, what actually creating lag with the process.
Hope this answers all your queries, if not please do repost back.
If an Answer is helpful, please click "Accept Answer" and upvote it : )