Author Posts

March 18, 2016 at 3:42 am

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.

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

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

March 21, 2016 at 5:18 am

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.