diff --git a/AddProjectACL.ps1 b/AddProjectACL.ps1 index b7723da..0eb68f6 100644 --- a/AddProjectACL.ps1 +++ b/AddProjectACL.ps1 @@ -12,9 +12,9 @@ $Read = 'ACL-'+$ProjectName+'-RO' $Write = 'ACL-'+$ProjectName+'-RW' if($PSBoundParameters.ContainsKey("Server")){ - New-ADGroup -Path $ACL -Server $Server -Name $Read - New-ADGroup -Path $ACL -Server $Server -Name $Write + New-ADGroup -Path $ACL -Server $Server -Name $Read -GroupCategory Security -GroupScope Global + New-ADGroup -Path $ACL -Server $Server -Name $Write -GroupCategory Security -GroupScope Global } else { - New-ADGroup -Path $ACL -Name $Read - New-ADGroup -Path $ACL -Name $Write + New-ADGroup -Path $ACL -Name $Read -GroupCategory Security -GroupScope Global + New-ADGroup -Path $ACL -Name $Write -GroupCategory Security -GroupScope Global } diff --git a/AddProjectRoles.ps1 b/AddProjectRoles.ps1 index 6bc7417..db6b457 100644 --- a/AddProjectRoles.ps1 +++ b/AddProjectRoles.ps1 @@ -12,9 +12,9 @@ $Read = 'GR-'+$ProjectName+'-RO' $Write = 'GR-'+$ProjectName+'-RW' if($PSBoundParameters.ContainsKey("Server")){ - New-ADGroup -Path $Roles -Server $Server -Name $Read - New-ADGroup -Path $Roles -Server $Server -Name $Write + New-ADGroup -Path $Roles -Server $Server -Name $Read -GroupCategory Security -GroupScope Global + New-ADGroup -Path $Roles -Server $Server -Name $Write -GroupCategory Security -GroupScope Global } else { - New-ADGroup -Path $Roles -Name $Read - New-ADGroup -Path $Roles -Name $Write + New-ADGroup -Path $Roles -Name $Read -GroupCategory Security -GroupScope Global + New-ADGroup -Path $Roles -Name $Write -GroupCategory Security -GroupScope Global } \ No newline at end of file