SCCM Run Script not working

Trinadhchandra kola 46 Reputation points
2022-11-10T00:10:07.78+00:00

Hello All,

We use the SCCM Run Script feature to run a PowerShell script against computers and collections in real time for a long time. The last I knew it was working correctly but from a couple of days I found out it did not work.

The Script execution dialog runs forever with nothing happening. It is stuck at the "Creating Client Jobs" stage. On the target machine, nothing is logged in the scripts.log. it looks as though the server is not creating the job. I have Full Admin rights on the SCCM box.
258895-script-run.png
What am I missing? Is there any log on the server side that I can monitor?

Thank You.

Regards,
Trinadh Kola.

Windows for business Windows Server User experience PowerShell
Microsoft Security Intune Configuration Manager Other
0 comments No comments
{count} votes

Accepted answer
  1. CherryZhang-MSFT 6,496 Reputation points
    2022-12-05T01:58:16.13+00:00

    Hi @Rakesh Kumar ,
    Thanks very much for your feedback. I am glad that the question is fixed now. Here's a short summary for the problem, we believe this will help other users to search for useful information more quickly. It's appreciated that you could click "Accept Answer" to the reply. If there's anything else we can help in the future, feel free to post in our Q&A to discuss together.

    Problem/Symptom:
    SCCM Run Script not working.

    Solution/Workaround:
    Recreate SMS SSL certificate, the Script run is working fine in SCCM.

    Thanks again for your time! Have a nice day!

    Best regards,
    Cherry

    0 comments No comments

16 additional answers

Sort by: Most helpful
  1. Trinadhchandra kola 46 Reputation points
    2022-11-11T00:56:39.567+00:00

    Hi, Thank You for your response.

    I have tried to run it on the test machines but the script is not receiving it. In the script log, it is showing old dates only (2 Months back date).

    Not getting any communication for the latest scripts.

    Thank You.

    Regards,
    Trinadh Kola.

    0 comments No comments

  2. Gideoney 446 Reputation points
    2022-11-11T09:38:37.627+00:00

    Perhaps you can check out bgbserver.log refer to the following thread. See all comments from xerexs2985 users in the comment section. Is it similar to this thread, with the same error in bgbserver.log?
    quotscriptsquot-stuck-at-quotcreating-client-jobsquot

    259406-1.png

    259439-2.png

    0 comments No comments

  3. CherryZhang-MSFT 6,496 Reputation points
    2022-11-11T09:49:33.737+00:00

    Hi @Trinadhchandra kola ,

    1, Have you tried created and run a simple script? Is the same result? Is it convenient to share the script to discuss together? Have you tried to run script in Power Shell on the client computer?

    2, Have you installed any antivirus software and changed your firewall? Please try to turn off all firewalls on a test machine for test.

    3, CMPivot, Scripts and Client notifications all use the fast channel. Which means any actions will be listed in the BGBServer.log, please check it.
    Navigate to C:Program Files\Microsoft Configuration Manager\Logs...

    3, What SCCM version are your using? I did some research about your question. I found a similar case which mentioned in the article this may cause by the SQL Broker was broken. Please run following SQL query on SQL Server Management Studio to confirmed it.

    > SELECT is_broker_enabled,is_honor_broker_priority_on FROM sys.databases WHERE name = 'CM_xx

    Both should be set to 1. The screenshot for your reference:
    259503-1.png
    For more details please refer to this article:
    https://britv8.com/memcm-scripts-stuck-at-creating-client-jobs/
    Note: Microsoft provides third-party contact information to help you understand the problem. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

    Thanks for your time and patience.

    Best regards,
    Cherry


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Trinadhchandra kola 46 Reputation points
    2022-11-15T02:41:51.697+00:00

    @Gideoney Thank You for the update , I will recreate the SSL certificate and will give you the update

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.