locked
Invalid script to run on specified client RRS feed

  • Question

  • Hi guys,

    SCCM CB 1910

    I need to push the "WinRM Quickconfig-q" command for specific clients, which can be executed manually on the client.
    However, after successful execution on the specified machine in the SCCM Console, nothing changes on the client. 

    I've tried with the following command:
    Winrm quickconfig -q
    Cmd. exe/C "WinRM quickconfig -q"
    Cmd. exe/C WinRM quickconfig -q

    Did I miss something?

    Think you in advance.

    Best regards,

    Tim

    • Edited by 2019_315 Tuesday, July 21, 2020 5:13 PM
    Tuesday, July 21, 2020 5:12 PM

All replies

  • Try this

    & "winrm.exe quickconfig -q"

    Also, check the scripts.log on the client and validate that your execution policy allows the use of unsigned scripts.


    Jason | https://home.configmgrftw.com | @jasonsandys

    Tuesday, July 21, 2020 7:52 PM
  • Hi,

    I have set my powershell execution policy as bypass, and the command works well for my client:
    cmd.exe /c "WinRM Quickconfig -q"

    After running the script, the windows remote management services is startup and the start type is set to automatic. And the script.log from client is also good:

    Regards,
    Allen

    Please remember to mark the replies as answers if they help.

    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, July 22, 2020 6:20 AM
  • Hi,

    It seems there is no update for a couple of days. May we know the current status of the problem? Is there any other assistance we can provide? Here's a short summary for the problem.

    Problem/Symptom:
    ===================
    Use sccm scripts to run command "Cmd. exe/C "WinRM quickconfig -q"", after successful execution, nothing happened on clients.

    Solution suggested:
    ===================
    Try to set powershell execution policy as bypass.

    Regards,
    Allen

    "MECM" forum will be migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the "MECM" forum's new home on Microsoft Q&A!
    For more information, please refer to the sticky post.

    Tuesday, August 18, 2020 8:41 AM