Reputation: 6981
I have been dealing with this error for the past day, where any Powershell DSC resource that uses a PowerShell credential object fails with the following error:
The password supplied to the Desired State Configuration resource is not valid. The password cannot be null or empty
The configuration has been working without issues for the last 4 years. This just started to happen 1 or 2 days ago. I am using the MSFT_ServiceResource to configure a windows service.
.mof
files on the target machineNo luck so far.
Does anyone have found this issue? Any way to resolve it?
Update 1
These are the only two recent windows updates. Not sure if those are related.
Update 2
I can confirm that after uninstalling update KB5014692 I was able to get the DSC running successfully again.
Upvotes: 2
Views: 766
Reputation: 53
Update: The July patches fix this issue for all affected OS versions. Tested & confirmed.
Upvotes: 1
Reputation: 1
the root cause of the issue regarding the DSC… Due to June updates the Microsoft.Windows.DSC.CoreConfProviders.dll was modified on this folder C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Windows.DSC.CoreConfProviders\v4.0_3.0.0.0__31bf3856ad364e35\ to a newer version.
If you want a solution before the next patch tuesday proceed like this:
In any server who wasn't patched or you uninstalled the patch already it's only a matter to grab the dll (unpatched) and replace the dll on the affected servers. NOTE: if you have Server 2016 and 2019 the dll should be from the same OS.
that's all folks
Upvotes: 0
Reputation: 31
Thank you for sharing! we were also facing the same issue and with the ARM template picking latest version of windows server image, we have no idea why was it failing all of a sudden. We are now using the earlier version of windows server image to overcome this issue.
Upvotes: 0