Compare commits

..

No commits in common. "81898676ed587c9693722128afd3003959cafea4" and "2bd7340a85988a2817fe164f689eff523ae5c450" have entirely different histories.

2 changed files with 8 additions and 8 deletions

View File

@ -11,8 +11,8 @@ param (
$Type = "RO"
)
$User = $null
$Group = $null
[ADUser]$User = $null
[ADGroup]$Group = $null
if(!$PSBoundParameters.ContainsKey("ProjectName")){
@ -61,7 +61,7 @@ if($null -eq $Group){
}
if($PSBoundParameters.ContainsKey("Server")){
Add-ADGroupMember -Identity $targeGroup -Members $Identity -Server $Server
Add-ADGroupMember -Identity $targeGroup -Members $User -Server $Server
} else {
Add-ADGroupMember -Identity $targeGroup -Members $Identity
Add-ADGroupMember -Identity $targeGroup -Members $User
}

View File

@ -11,8 +11,8 @@ param (
$Type = "RO"
)
$User = $null
$Group = $null
[ADUser]$User = $null
[ADGroup]$Group = $null
if(!$PSBoundParameters.ContainsKey("ProjectName")){
@ -61,7 +61,7 @@ if($null -eq $Group){
}
if($PSBoundParameters.ContainsKey("Server")){
$targeGroup | ForEach-Object {Add-ADGroupMember -Identity $_ -Members $Identity -Server $Server}
$targeGroup | ForEach-Object {Add-ADGroupMember -Identity $_ -Members $User -Server $Server}
} else {
$targeGroup | ForEach-Object {Add-ADGroupMember -Identity $_ -Members $Identity}
$targeGroup | ForEach-Object {Add-ADGroupMember -Identity $_ -Members $User}
}