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