I’m in the process of rolling out DSC to about 1000 hosts and I’ve run into a problem that for the life of me I cant work out (probably due to staring at the screen to long).
I need to exclude all groups/users, except selected groups that i have specified in the MembersToInclude =.
How can I achieve this?
I was doing some searching on the site and i came across this thread https://powershell.org/forums/topic/using-a-function-inside-the-script-resource/#post-19744
If the MembersToInclude is populated, MembersToExclude is ignored. So if I understand this right if MembersToInclude is populated, those will be the only members allowed? If this is the case, will DSC auto-remove any other groups/users?
Thanks for the help!