One Way To Get Around The Error “Get-targetresource PS module does not implement the key property solution” in DSC

Goal:  Apply DSC configuration
Problem/scenario:   When you run the "start-dscconfiguration NameOfConfig -wait -verbose" (where NameOfConfig is the name of the configuration) from the folder that houses the subfolder with NameOfConfig, you get an error like this:  "Get-targetresource PS module does not implement the key property solution"
Solution:  Stop a specific process by running this command.
gps wmi* |? {$_.Modules.ModuleName -like '*DSC*'} | Stop-Process -Force
Re-run the "start-dscconfiguration NameOfConfig -wait -verbose" command.

Leave a comment

Your email address will not be published.