Trying to use PSDscResources, but get error...

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Mark Gray (MSFT) Mark Gray (MSFT) 2 weeks, 1 day ago.

  • Author
    Posts
  • #70270
    Profile photo of James Gibbons
    James Gibbons
    Participant

    Ok, so I read that we should be using PSDscResources instead of built in module PSDesiredStateConfiguration, in some Microsoft docs, since it can be updated now and PSDesiredConfiguration can only be updated with every OS Refresh, but when I create a configuration and include the line Import-DscResource -ModuleName PSDscResources -ModuleVersion 2.6.0.0 , I get a red line under it with the following error message:
    Resource Name "Archive" is already being used by another resource or configuration. I know what this problem is, the resources in PsDscResources are the same as the ones in PSDesiredStateCOnfiguration. I am also using ISESteroids, so that may be putting up this red line and error message, but does anybody know if there is a way to tell the ISE to use PSDscResources, and not the built-in PSDesiredStateCOnfiguration? Also I noticed that a lot of people online are still using the built-in resource. Did Microsoft change the recommendation to use PSDscResources instead???
    Thanks
    James

  • #70313
    Profile photo of Mark Gray (MSFT)
    Mark Gray (MSFT)
    Participant

    Hey James,

    We are looking into this issue now. We are able to reproduce it so will get back to you when I have more info.

    MarkG

You must be logged in to reply to this topic.