-
Notifications
You must be signed in to change notification settings - Fork 225
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
xSQLServerRole: Returns an error when calling Get-DscConfiguration #790
Comments
Does this only happen when there is only one member in the group? If so, then If so it should suffice to make sure this line always cast to a |
Still get an error even if adding multiple Groups to MembersToInclude but your suggested fix works ... [System.String[]]$membersInRole = $sqlServerRoleObject.EnumMemberNames() |
xSQLServerRole DscRessource returns an error when running Get-DscConfiguration
Get-DscConfiguration : GetConfiguration did not succeed.
Event Log give some more details
Message Unable to cast object of type 'System.String' to type 'System.Collections.IList'.
Parameter name: value
Implicitly casting Return Value to a String Array fixes this issue, but there's probably a better way to do this.
The text was updated successfully, but these errors were encountered: