Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xADDomainController: Get-DscConfiguration fails #155

Closed
jibinpeng opened this issue May 2, 2017 · 6 comments · Fixed by #249
Closed

xADDomainController: Get-DscConfiguration fails #155

jibinpeng opened this issue May 2, 2017 · 6 comments · Fixed by #249
Labels
bug The issue is a bug.

Comments

@jibinpeng
Copy link

The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The Ensure key is not a valid property in the corresponding DSC resource schema file. The results from Get-TargetResource
must be in a Hashtable format. The keys in the Hashtable must be the same as the properties in the corresponding DSC resource schema file.

@jibinpeng
Copy link
Author

This is for xActiveDirectory version 2.16.0.0.

@alexaymonier
Copy link

Yep getting this too. Have other xActiveDirectory resources in use and this is the only one (i've seen so far). Looking in a bit deeper the return statement is returning 'ensure' which is not in the schema.mof. In the resource this is reference on line 31 and 52. Is this actually needed for the Get? If i remove the entries for 'ensure' it works fine.

@pcarnella
Copy link

Same here...other resources in the xActiveDirectory module 2.16.0.0 that I've used seem fine, just xADDomainController causing this error.

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub labels May 8, 2018
@johlju johlju changed the title Error from Get-DscConfiguration after apply xADDomainController xADDomainController: Get-DscConfiguration fails May 8, 2018
@JibinPeng1
Copy link

This bug exists in version 2.19.0.0 as well. Will this be fixed in the near future?

@johlju
Copy link
Member

johlju commented Jul 27, 2018

This work is abandoned in PR #111. Anyone in the community may continue the work, by sending in a new PR that resolves this and have a unit test that tests that this property is returned correctly (and updated the Unreleased section in the change log).

johlju pushed a commit that referenced this issue Mar 26, 2019
- Added Ensure Read property to xADDomainController to fix Get-TargetResource return bug (issue #155).
  - Updated readme and add release notes
@kwirkykat kwirkykat removed the help wanted The issue is up for grabs for anyone in the community. label Mar 26, 2019
johlju pushed a commit to johlju/ActiveDirectoryDsc that referenced this issue Apr 19, 2019
…fails (dsccommunity#249)

- Added Ensure Read property to xADDomainController to fix Get-TargetResource return bug (issue dsccommunity#155).
  - Updated readme and add release notes
@johlju johlju removed the good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub label Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants