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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

Accepted answer
  1. CherryZhang-MSFT 6,481 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-14T03:39:07.683+00:00

    259954-script-run-3.png259982-script-run-2.png

    259850-sql-broker.png

    Hi All,

    Broker is Enabled but In BGBServer.log I am getting errors

    ERROR: Can't find the specified certificate in cert store My with cert hash EA4E0DAD73B610BC4A617E0B280B31A25CD2A447...

    ERROR: Can't encode to get signature in a message without signing certificate

    Receiving a message from queue timeout.

    Retrieving push tasks from the database...

    Can't start TCP listener for now

    Wait 60 seconds to restart the TCP listener

    But the SMS SSL Certificate is up to date and is not expired and the Client is communicating with the SSL Certificate I have checked location services, Client location, and Client ID Manager logs all are looking good and they are communicating with SSL,

    Thank You,

    Regards,
    Trinadh Kola.

    1 person found this answer helpful.

  2. Gideoney 441 Reputation points
    2022-11-10T01:53:47.78+00:00

    We could check Scripts.log on the side of client to see if any error in it, it records the activity of when Configuration Manager scripts run on the client.

    And on the side of site server, we could check SMS_MESSAGE_PROCESSING_ENGINE.log, which the site uses to process results for client actions.

    Besides, the error is very similar to the thread below, the links for your reference:
    sccm-run-script-not-working
    quotscriptsquot-stuck-at-quotcreating-client-jobsquot

    In the both theads, we can see that the customer's reply below is waiting for a while for the problem to be resolved without any errors.

    0 comments No comments

  3. Trinadhchandra kola 46 Reputation points
    2022-11-10T04:11:33.85+00:00

    I have checked the required log file from the Client and server sides. No error was reported in the log files on the server. The client didn't receive any communication from the server in Script.log no messages were updated. at the initial stage, I assume it is a client issue but It is not for one or two machines.l On all the client's same issue.

    0 comments No comments

  4. CherryZhang-MSFT 6,481 Reputation points
    2022-11-10T05:21:34.763+00:00

    Hi @Trinadhchandra kola ,

    1, Please make sure the script is valid. Have you tried to execute this Script on a test client manually?

    2, Please try to run another Script, Is the same result?

    3, I did some tests on your question, the screenshots of scripts.log for your reference:
    258992-1.png

    259011-2.png

    Looking forward to your feedback.

    Best regards,
    Cherry

    0 comments No comments