Comments (14)
@jdhitsolutions What is your full PowerShell/WMF version?
from psdscresources.
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.
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.
So you aren't importing PSDscResources in your config and this error is still showing up?
This is similar to #43
from psdscresources.
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.
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.
Sorry didn't mean to do that
from psdscresources.
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.
@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.
@jdhitsolutions Are you on Windows Server 2016/Windows 10?
from psdscresources.
@jdhitsolutions Is this WMF from an Insider build?
from psdscresources.
@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.
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.
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)
- Set-StrictMode behavior breaks valid Configurations from (x)PSDesiredStateConfiguration HOT 3
- PsDscRunAsCredential with empty password throws error "Object reference not set to an instance of an object."
- Script Resource "No user exists"
- WindowsOptionalFeature: Get Method fails if OptionalFeature has no custom properties when called by the LCM.
- Archive: Special Characters not supported in file names within zip files
- WindowsFeatureSet broken when using member Source HOT 3
- Environment: Implement 'User' target HOT 1
- File: Default checksum type not documented
- Service: Invoke-DscResource fail to update a service HOT 3
- Fix CI Pipeline Failures
- Registry: Set "Absent" with ValueData fails if Key uses "HKEY_LOCAL_MACHINE\..." HOT 1
- Registry: add option to require reboot after setting
- User: Test-DscResource fails for user that is disabled by resource
- Archive: DSC resouce does not support paths longer than 260
- MSFT_GroupResource: SAMR can be blocked by domain controller GPO in Get-TargetResource HOT 1
- Group: Get-TargetResource throws with single member in group due to Type mismatch HOT 2
- WindowsFeature: Resource thinks Windows Server 2022 Azure Edition Core is a Client OS HOT 1
- WindowsProcess DSC resource fails intermittently with "Failed to wait for processes to start." HOT 1
- Registry: Cannot set same key for different users credentials
- psdscresources: dsc_ensure changed 'Present' to 'present' (corrective) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psdscresources.