Script not running when scheduled

Mr O Pereira 25 Reputation points
2024-03-20T09:26:15.4366667+00:00

Hi guys,

I've created a script to run in SCCM. It runs fine when running it without schedule. As soon as I schedule it to run at a specific time, it fails, even though in the status it says successful.

Has anyone experienced anything similar?

Any help would be highly appreciated.

O Pereira

Microsoft Configuration Manager
{count} votes

2 answers

Sort by: Most helpful
  1. Garth Jones 1,656 Reputation points MVP
    2024-03-20T12:00:39.1033333+00:00

    What exactly do the logs say is happening?


  2. AllenLiu-MSFT 39,841 Reputation points Microsoft Vendor
    2024-03-21T06:35:26.7233333+00:00

    Hi, @Mr O Pereira

    Thank you for posting in Microsoft Q&A forum.

    I did a test in my environment, whether run it with or without schedule, it will success.

    I think the issue is related to your script. Are we sure the second run will be successful? Have we tried running the script manually multiple times?


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".