-
Notifications
You must be signed in to change notification settings - Fork 141
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
ADGroup: generates an error that a group already exists when run from a different domain #99
Comments
@iainbrighton PR #107 corrected the issue I reported. I encountered a new issue while testing: I setup the scenario from the initial report and generated the expected error. I replaced "C:\Program Files\WindowsPowerShell\Modules\xActiveDirectory\2.11.0.0\xActiveDirectory.psd1" with the code in the pull request. An error was not generated for groups that already exist. Awesome; thank you. When a new AD group is created it takes ~20 seconds to propagate to all the domain controllers. I have circumvented this delay by using the same DC for all transactions. Is it possible for the code that checks if the group exists to reference the domain controller that is specified in the xADGroup script? |
@davnport Do you mean the following?:
I don't think there's any way to determine on what server an update was performed on (or not that I'm aware of). A solution to this might be:
This should make the resource dynamic enough that there isn't a hard-coded, single point of failure. |
If no value is set for If there are another way, please comment on this issue and we can continue the discussion. Closing this issue at this time. |
When the xADGroup resource is executed from our TEST domain to create AD groups in the PRODUCTION domain a group is created on the first execution. Subsequent executions generate an error that the AD group already exists.
When the xADGroup resource is executed from our PRODUCTION domain to create AD groups in the PRODUCTION domain a group is created on the first execution. Subsequent executions do not generate an error; the resource works correctly.
This is an example of the code being run from TEST to create a group in PRODUCTION
First warning logged to event viewer
second warning logged to event viewer
The text was updated successfully, but these errors were encountered: