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,383 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-15T02:44:55.78+00:00

    Do you have any Guide or Link how to recreate SSL certificate with same hash , If yes kindly provide here

    0 comments No comments

  2. CherryZhang-MSFT 6,481 Reputation points
    2022-11-16T09:35:39.387+00:00

    Hi @Trinadhchandra kola ,

    1, Can we find the certificate with same cert hash in the Microsoft Management Console? For example:

    260799-picture3.png

    260913-picture4.png

    260836-picture5.png

    2, What communication method are you using, HTTPS only or HTTPS or HTTP?
    260825-picture6.png

    Looking forward to your feedback.

    Best regards,
    Cherry


  3. Trinadhchandra kola 46 Reputation points
    2022-11-20T22:18:11.877+00:00

    Hi Cherry,

    Still, I am facing the same issue unable to run the scripts. I struck at client Jobs.

    I have checked the Hash value in the log file and MMC Certificate store, Both the hash values are different.

    In the BGServer log, it is looking for hash value (MP SSL is Enabled, signing certificate (store: My, hash EA4E0DAD73B610BC4A617E0B280B31A25CD2A447), encryption certificate (store: My, hash EA4E0DAD73B610BC4A617E0B280B31A25CD2A447)).

    262253-image.png

    But in the MMC store it is different (‎6f ec d3 52 91 8a cb cb 95 23 ce da 0c fa fa 8f 78 f8 2c cc)

    262289-image.png

    Https also enabled in the Environment

    262351-image.png

    Thank You.

    Regards,
    Trinadh Kola.

    0 comments No comments

  4. CherryZhang-MSFT 6,481 Reputation points
    2022-11-21T04:32:39.42+00:00

    Hi @Trinadhchandra kola ,

    According to the screenshot, you have ticked Use PKI client certificate (client authentication capability) when available and Trusted Root Certification Authorities.

    Use PKI client certificate (client authentication capability) when available: If you chose the HTTPS or HTTP site server setting, choose this option to use a client PKI certificate for HTTP connections. The client uses this certificate instead of a self-signed certificate to authenticate itself to site systems. If you chose HTTPS only, this option is automatically chosen.

    Trusted Root Certification Authorities: To import, view, and delete the certificates for trusted root certification authorities.

    Have you added any PKI certificates? If these two options are not necessary and you have checked HTTPS or HTTP , we may uncheck them.
    262338-picture1.png

    For more detail about Client PKI certificates, please refer to following links:
    Configure security - Configuration Manager | Microsoft Learn
    SCCM Configure Settings For Client PKI Certificates ConfigMgr HTMD Blog (anoopcnair.com)
    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.

    Looking forward to your feedback.

    Best regards
    Cherry

    0 comments No comments