MSFT_ScriptResource threw one or more non-terminating errors while running bat

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Uttam Kumar Mohanta Uttam Kumar Mohanta 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36699

    Hello All,

    I am running a bat file by powershell dsc as below. It was working fine few days back but suddenly it stopped working and throwing below error.
    Please hellp me to get it resolve.

    Code:
    Configuration RunBatFile
    {
    Node Node1
    {
    Script ExecuteBatFile
    {
    GetScript = { return $false }
    TestScript = { return $false }
    SetScript =
    {
    Write-Verbose "STARTING..."
    & C:\Testing.bat
    Write-Verbose "DONE"
    }
    }
    }
    }
    RunBatFile
    Start-DscConfiguration -Path .\RunBatFile -Verbose -Wait -Force

    Error:
    The PowerShell DSC resource MSFT_ScriptResource threw one or more non-terminating errors while running the
    Set-TargetResource functionality. These errors are logged to the ETW channel called
    Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
    + CategoryInfo : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : NonTerminatingErrorFromProvider
    + PSComputerName : ComputerName

    The SendConfigurationApply function did not succeed.
    + CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : MI RESULT 1
    + PSComputerName : ComputerName

    #36800

    Hello All,
    I could not get any help as of now for my above issue PSDSC error
    Please update me on the same to fix it.

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.