none
Power shell script RRS feed

  • Question

  • Hello All,

    I have created one power shell script to rerun the SCCM task sequence remote on assigned machines.

    But it was throughing error even though the machine was part of the task sequence collection.

    $computerlist = Get-Content -Path c:\temp\inputfile.txt
    foreach ($computername in $computerlist)
    {
    Invoke-WmiMethod -computername $computername -Namespace "root\ccm" -Class "SMS_CLIENT" -Name TriggerSchedule CAS209C9-CAS02545-6F6BCC28
    }

    ERROR:

    This is the error i am getting in the Execmgr.log 

    "CreateMandatoryRequestRecursively policy * not assigned"

    Please help to modify the script as running condition.


    THANKS SURESH M

    • Moved by Bill_Stewart Thursday, March 14, 2019 11:26 PM This is not "scripts on demand"
    Tuesday, November 20, 2018 1:59 PM

All replies

  • Please post SCCM specific issues in the SCCM forum.  Your issue is related to the use and configuration of a task sequence and not a PowerShell issue.


    \_(ツ)_/

    Tuesday, November 20, 2018 2:09 PM