forked from dsccommunity/ActiveDirectoryDsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADGroup: Changing group membership management mechanism (dsccommunity…
…#620) This is intended to change the way that the ADGroup resource manages group membership. The new implementation abandons usage of Add-ADGroupMember and Remove-ADGroupMember due to limitations with Foreign Security Principals. Instead we opt to utilize Set-ADGroup with the Add and Remove parameters, passing a hash object with the member key and a list of formatted SID values (e.g. - "<SID=SID_VALUE>").
- Loading branch information
1 parent
f30a845
commit 87b1308
Showing
14 changed files
with
1,082 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
source/Examples/Resources/ADGroup/4-ADGroup_NewGroupOneWayTrust_Config.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID f2ecc331-e242-4204-a6b1-54fd68c852b7 | ||
.AUTHOR DSC Community | ||
.COMPANYNAME DSC Community | ||
.COPYRIGHT DSC Community contributors. All rights reserved. | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/dsccommunity/ActiveDirectoryDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/dsccommunity/ActiveDirectoryDsc | ||
.ICONURI https://dsccommunity.org/images/DSC_Logo_300p.png | ||
.RELEASENOTES | ||
Initial release | ||
#> | ||
|
||
#Requires -Module ActiveDirectoryDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
This configuration will create a new domain-local group in contoso with | ||
two members; one from the contoso domain and one from the fabrikam domain. | ||
This qualified SamAccountName format is required if any of the users are in a | ||
one-way trusted forest/external domain. | ||
#> | ||
Configuration ADGroup_NewGroupOneWayTrust_Config | ||
{ | ||
Import-DscResource -ModuleName ActiveDirectoryDsc | ||
|
||
node localhost | ||
{ | ||
ADGroup 'ExampleExternalTrustGroup' | ||
{ | ||
GroupName = 'ExampleExternalTrustGroup' | ||
GroupScope = 'DomainLocal' | ||
MembershipAttribute = 'SamAccountName' | ||
Members = @( | ||
'contoso\john' | ||
'fabrikam\toby' | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.