MicrosoftDocs / PowerShell-Docs-DSC

Documentation for PowerShell Desired State Configuration
https://learn.microsoft.com/powershell/dsc/overview
Creative Commons Attribution 4.0 International
28 stars 35 forks source link

Problem with Code #43

Closed sip03ds closed 2 years ago

sip03ds commented 2 years ago

Hi,

I have tested the code provided using:

and I get errors that PSDscResources\WindowsFeature is not recognized.

When I try with:

the code is compiled.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mgreenegit commented 2 years ago

Thank you for reporting this. In looking at the issue, we have identified a bug that will require a new release of the PSDesiredStateConfiguration module. We are triaging the work and will try to get the fix out soon.

FreefallGeek commented 2 years ago

powershellWindowsFeatureError Experiencing the same.

Is there currently a work-around for this? The original comment indicated that w/ Powershell 5.1 the PSDSC module handles the WindowsFeature resource correctly, but when I attempt to use Powershell 5.1 to run PSDesiredStateConfiguration I get the following: The module 'C:\Program Files\WindowsPowerShell\Modules\PSDesiredStateConfiguration\3.0.0\PSDesiredStateConfiguration.psd1' requires a minimum Windows PowerShell version of '7.2' to run.

sdwheeler commented 2 years ago

PSDesiredStateConfigurationV2.0.5 assume the path separator as ":".

We are working on a fix. This is not a docs issue. Closing this docs issue.