Script not running when scheduled

Mr O Pereira 25 Reputation points

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

    What exactly do the logs say is happening?

  2. AllenLiu-MSFT 39,841 Reputation points Microsoft Vendor

    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".