now searchin with eq
This commit is contained in:
parent
93fc00b4c7
commit
3f0cba6cd7
@ -14,10 +14,7 @@ if($PSBoundParameters.ContainsKey("Server")){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($PSBoundParameters.ContainsKey("ProjectName")){
|
if($PSBoundParameters.ContainsKey("ProjectName")){
|
||||||
$Projects = $Projects | Where-Object Name -Match $ProjectName
|
$Projects = $Projects | Where-Object Name -eq $ProjectName
|
||||||
if($ProjectName.Count -ge 1){
|
|
||||||
$Projects=$Projects[0]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $Projects | Get-ADGroupMember | Where-Object Name -Match "ACL.*"
|
return $Projects | Get-ADGroupMember | Where-Object Name -Match "ACL.*"
|
@ -21,10 +21,7 @@ if($PSBoundParameters.ContainsKey("ProjectName")){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($PSBoundParameters.ContainsKey("ProjectName")){
|
if($PSBoundParameters.ContainsKey("ProjectName")){
|
||||||
$Projects = $Projects | Where-Object Name -Match $ProjectName
|
$Projects = $Projects | Where-Object Name -eq $ProjectName
|
||||||
if($ProjectName.Count -ge 1){
|
|
||||||
$Projects=$Projects[0]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $Projects | Get-ADGroupMember | Where-Object Name -Match "GR.*"
|
return $Projects | Get-ADGroupMember | Where-Object Name -Match "GR.*"
|
Loading…
Reference in New Issue
Block a user