added group attributes
This commit is contained in:
parent
07c10b68e3
commit
42fd038b5d
@ -9,12 +9,12 @@ param (
|
|||||||
. .\Variables.ps1
|
. .\Variables.ps1
|
||||||
|
|
||||||
if($PSBoundParameters.ContainsKey("Server")){
|
if($PSBoundParameters.ContainsKey("Server")){
|
||||||
New-ADGroup -Path $Projects -Server $Server -Name $ProjectName
|
New-ADGroup -Path $Projects -Server $Server -Name $ProjectName -GroupCategory Security -GroupScope Global
|
||||||
. .\AddProjectACL.ps1 -ProjectName $ProjectName -Server $Server
|
. .\AddProjectACL.ps1 -ProjectName $ProjectName -Server $Server
|
||||||
. .\AddProjectRoles.ps1 -ProjectName $ProjectName -Server $Server
|
. .\AddProjectRoles.ps1 -ProjectName $ProjectName -Server $Server
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
New-ADGroup -Path $Projects -Name $ProjectName
|
New-ADGroup -Path $Projects -Name $ProjectName -GroupCategory Security -GroupScope Global
|
||||||
. .\AddProjectACL.ps1 -ProjectName $ProjectName
|
. .\AddProjectACL.ps1 -ProjectName $ProjectName
|
||||||
. .\AddProjectRoles.ps1 -ProjectName $ProjectName
|
. .\AddProjectRoles.ps1 -ProjectName $ProjectName
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user