GithubHelp home page GithubHelp logo

Comments (14)

kwirkykat avatar kwirkykat commented on May 30, 2024

@jdhitsolutions What is your full PowerShell/WMF version?

from psdscresources.

jdhitsolutions avatar jdhitsolutions commented on May 30, 2024
Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      5.1.15055.0                                                                             
PSEdition                      Desktop                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
BuildVersion                   10.0.15055.0                                                                            
CLRVersion                     4.0.30319.42000                                                                         
WSManStackVersion              3.0                                                                                     
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1                                                                                 

from psdscresources.

jdhitsolutions avatar jdhitsolutions commented on May 30, 2024

I still think there is something funky with DSC and PSDscResources and PSDesiredStateconfiguration. If I try to use this in a config:

Import-DSCresource -ModuleName PSDesiredStateConfiguration -name User
Import-DscResource -ModuleName
@{ModuleName="xPSDesiredStateConfiguration";ModuleVersion="5.0.0.0"},
   @{ModuleName="xComputerManagement";ModuleVersion="1.8.0.0"},
   @{ModuleName="xNetworking";ModuleVersion="3.0.0.0"},
   @{ModuleName='xWindowsUpdate';ModuleVersion = '2.5.0.0'}

I still get this error:

ImportClassResourcesFromModule : Exception calling
"ImportClassResourcesFromModule" with "3" argument(s): "Resource
name 'WindowsPackageCab' is already being used by another Resource or
Configuration."

Even running the config in new PowerShell session with no profiles.

from psdscresources.

kwirkykat avatar kwirkykat commented on May 30, 2024

So you aren't importing PSDscResources in your config and this error is still showing up?

This is similar to #43

from psdscresources.

jdhitsolutions avatar jdhitsolutions commented on May 30, 2024

I get errors whether I import it or not. I have tried numerous combinations and the only thing that works is to uninstall PSDscResources. It looks like xPSDesiredStateConfiguration is automatically imported whether you specify it or not and I wonder if that is trying to automatically load something else.

So I see two symptoms here and they may be related. 1 - You can't import a resource by name. 2 - PowerShell reports resource name conflicts between this module and PSDesiredStateConfiguration.

from psdscresources.

jdhitsolutions avatar jdhitsolutions commented on May 30, 2024

Fine -- if you want to close this but even after looking at #43 I don't think you've really addressed this issue. I'll come up with a set of steps to repro and and re-post an issue.

from psdscresources.

kwirkykat avatar kwirkykat commented on May 30, 2024

Sorry didn't mean to do that

from psdscresources.

kwirkykat avatar kwirkykat commented on May 30, 2024

Does importing PSDscResources by itself even work?
This looks like a different WMF version than I have on my test machines.
So I'm thinking this must be a regression of a previous bug that we fixed in the DSC engine that did not allow overwriting of in-box resources.
I'm looking into it

from psdscresources.

kwirkykat avatar kwirkykat commented on May 30, 2024

@jdhitsolutions Where is your version of WMF coming from?

I am using 5.1.14409.1005 (the newest version I know of that you can download here) and I can also confirm that it works on 5.1.14393.693 which I have on a test box.

Since your version is 5.1.15055.0 I would expect it to be newer than the versions I have. However, the version of WMF 5.1 that went out as the 'WMF 5.1 Preview' was something like 5.1.14394.0 which looks newer than 5.1.14393.693 but was actually from a different branch of code that didn't have the right DSC engine bug fix yet so it was actually older code.

from psdscresources.

kwirkykat avatar kwirkykat commented on May 30, 2024

@jdhitsolutions Are you on Windows Server 2016/Windows 10?

from psdscresources.

kwirkykat avatar kwirkykat commented on May 30, 2024

@jdhitsolutions Is this WMF from an Insider build?

from psdscresources.

kwirkykat avatar kwirkykat commented on May 30, 2024

@jdhitsolutions Aha! This is the latest Windows Insider build that was released last week. I have opened this bug with DSC. I am marking this bug as external for now since there is nothing I can do in this repository/module to fix this.

from psdscresources.

jdhitsolutions avatar jdhitsolutions commented on May 30, 2024

Ok. I'll try to test with another Win10 client that isn't on the Insider Build ring or 5.1 on Windows 8.1

from psdscresources.

jdhitsolutions avatar jdhitsolutions commented on May 30, 2024

I guess life in the fast lane has its ups and downs. Got a new build last night and re-running the same configs now works as expected without any of the errors I reported.

Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      5.1.15058.0                                                                             
PSEdition                      Desktop                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
BuildVersion                   10.0.15058.0                                                                            
CLRVersion                     4.0.30319.42000                                                                         
WSManStackVersion              3.0                                                                                     
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1                                                                                 

And this was with v2.5 of the module installed.

from psdscresources.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.