identitiy of group being returned as an array
This commit is contained in:
parent
32e5c19230
commit
b81203e562
@ -11,8 +11,8 @@ param (
|
|||||||
$Type = "RO"
|
$Type = "RO"
|
||||||
)
|
)
|
||||||
|
|
||||||
$User = $null
|
[ADUser]$User = $null
|
||||||
$Group = $null
|
[ADGroup]$Group = $null
|
||||||
|
|
||||||
|
|
||||||
if(!$PSBoundParameters.ContainsKey("ProjectName")){
|
if(!$PSBoundParameters.ContainsKey("ProjectName")){
|
||||||
@ -50,9 +50,9 @@ if($null -eq $Group){
|
|||||||
$targeGroup =$null
|
$targeGroup =$null
|
||||||
|
|
||||||
if($PSBoundParameters.ContainsKey("Server")){
|
if($PSBoundParameters.ContainsKey("Server")){
|
||||||
$targeGroup = . .\GetRoles.ps1 -Server $Server -ProjectName $ProjectName
|
$targeGroup = . .\GetRoles.ps1 -Server $Server -ProjectName $ProjectName | Where-Object Name -Match $Type
|
||||||
} else {
|
} else {
|
||||||
$targeGroup = . .\GetRoles.ps1 -ProjectName $ProjectName
|
$targeGroup = . .\GetRoles.ps1 -ProjectName $ProjectName | Where-Object Name -Match $Type
|
||||||
}
|
}
|
||||||
|
|
||||||
if($null -eq $Group){
|
if($null -eq $Group){
|
||||||
|
Loading…
Reference in New Issue
Block a user