diff --git a/GetProjectUsers.ps1 b/GetProjectUsers.ps1 index 7b70fcc..79c9dff 100644 --- a/GetProjectUsers.ps1 +++ b/GetProjectUsers.ps1 @@ -10,9 +10,9 @@ param ( if($PSBoundParameters.ContainsKey('Name')){ $Roles=$null if($PSBoundParameters.ContainsKey('Server')){ - $Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -Match $Name + $Roles = . .\GetRoles.ps1 -Server $Server -ProjectName $Name } else { - $Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name + $Roles = . .\GetRoles.ps1 -ProjectName $Name } return $Roles | Get-ADGroupMember | Get-Unique }